#include "wxPanelWrapper.h"
#include <wx/grid.h>
Go to the source code of this file.
◆ wxTabTraversalWrapperCharHook()
void wxTabTraversalWrapperCharHook |
( |
wxKeyEvent & |
event | ) |
|
Definition at line 15 of file wxPanelWrapper.cpp.
16{
17
18#if defined(__WXMAC__) || defined(__WXGTK__)
19
20
21 if (event.GetKeyCode() == WXK_TAB) {
23 if (dynamic_cast<wxGrid*>(focus)
24 || (focus &&
25 focus->GetParent() &&
26 dynamic_cast<wxGrid*>(focus->GetParent()->GetParent()))) {
27
28 event.Skip();
29 return;
30 }
31
32 if (focus)
33 {
34 focus->Navigate(
35 event.ShiftDown()
36 ? wxNavigationKeyEvent::IsBackward
37 : wxNavigationKeyEvent::IsForward
38 );
39 return;
40 }
41 }
42#endif
43
44 event.Skip();
45}
std::unique_ptr< WindowPlacement > FindFocus()
Find the window that is accepting keyboard input, if any.
References BasicUI::FindFocus().
Referenced by wxTabTraversalWrapper< Base >::wxTabTraversalWrapper().