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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user