]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
adjusted topic links
[wxWidgets.git] / src / generic / vlbox.cpp
index 747d82825164302617dd0b084ee45c1e62f54fea..d75fc4f1304c25db1fc5e9d73b8b90d8df0935c0 100644 (file)
@@ -602,13 +602,7 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
         case WXK_TAB:
             // Since we are using wxWANTS_CHARS we need to send navigation
             // events for the tabs on MSW
-            {
-                wxNavigationKeyEvent ne;
-                ne.SetDirection(!event.ShiftDown());
-                ne.SetCurrentFocus(this);
-                ne.SetEventObject(this);
-                GetParent()->GetEventHandler()->ProcessEvent(ne);
-            }
+            HandleAsNavigationKey(event);
             // fall through to default
 #endif
         default: