1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01:00

Bug682: fix Tab key navigation in Preferences, particulary Keyboard

This commit is contained in:
Paul Licameli
2016-06-25 19:38:38 -04:00
parent 4739f3e27b
commit 9f6eedf6e4
4 changed files with 19 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ wxPanelWrapper::wxPanelWrapper(wxWindow * parent, wxWindowID id,
: wxPanel(parent, id, pos, size, style)
{}
void wxPanelWrapper::OnCharHook(wxKeyEvent &event)
void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
{
if (event.GetKeyCode() == WXK_TAB) {
wxWindow::FindFocus()->Navigate(
@@ -32,6 +32,11 @@ void wxPanelWrapper::OnCharHook(wxKeyEvent &event)
event.Skip();
}
void wxPanelWrapper::OnCharHook(wxKeyEvent &event)
{
DoCharHook(event);
}
BEGIN_EVENT_TABLE(wxPanelWrapper, wxPanel)
EVT_CHAR_HOOK(wxPanelWrapper::OnCharHook)
END_EVENT_TABLE()