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