+ if ((key_event.KeyCode() == WXK_RETURN) && (m_windowStyle & wxPROCESS_ENTER))
+ {
+ wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
+ event.SetEventObject(this);
+ if (GetEventHandler()->ProcessEvent(event)) return;
+ }
+ else if (key_event.KeyCode() == WXK_TAB)
+ {
+ wxNavigationKeyEvent event;
+ event.SetDirection( key_event.m_shiftDown );
+ event.SetWindowChange(FALSE);
+ event.SetEventObject(this);
+
+ if (GetEventHandler()->ProcessEvent(event)) return;
+ }
+ key_event.Skip();