In your plugin, override OnAction. Check for (action.wID==Action.ActionType.ACTION_KEY_PRESSED). Then you can cast the keystroke to a char with (char)action.m_key.KeyChar.
The type or namespace name 'GUIDialogOK' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Web;
using MediaPortal.Configuration;
using MediaPortal.Util;
using MediaPortal.GUI.Library;
public override void OnAction(MediaPortal.GUI.Library.Action action)
{
char mumbojumbo = (char)action.m_key.KeyChar;
OnButtonOne(mumbojumbo);
}
private void OnButtonOne(char whatever)
{
GUIDialogOK standbyMessage = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
standbyMessage.Reset();
standbyMessage.SetHeading("Testing popup");
standbyMessage.SetLine(1, "whatever...");
standbyMessage.DoModal(MediaPortal.GUI.Library.GUIWindowManager.ActiveWindow);
}
Add a reference to Dialogs.dll. It's in plugins\windows\.
if (action.m_key != null && action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_KEY_PRESSED)
{
//Do some routines with Shift and Ctrl keys and the like...
}