I can make the call to
Code: Select all
bool wxWindow::RegisterHotKey( int hotkeyId, int modifiers, int virtualKeyCode )
Code: Select all
bool wxWindow::RegisterHotKey( int hotkeyId, int modifiers, int virtualKeyCode )
Code: Select all
#define HOTKEY_ID1 wxID_HIGHEST + 1
#define HOTKEY_ID2 wxID_HIGHEST + 2
Code: Select all
// Hot key number 1: Ctrl-T
RegisterHotKey(HOTKEY_ID1, wxMOD_CONTROL, 'T');
Bind(wxEVT_HOTKEY, &MyFrame::OnHotKey1, this, HOTKEY_ID1);
// Hot key number 2: Ctrl-R
Bind(wxEVT_HOTKEY, &MyFrame::OnHotKey2, this, HOTKEY_ID2);
RegisterHotKey(HOTKEY_ID2, wxMOD_CONTROL, 'R');
Code: Select all
void MyFrame::OnHotKey1(wxKeyEvent& e)
{
}
void MyFrame::OnHotKey2(wxKeyEvent& e)
{
}