]> git.saurik.com Git - wxWidgets.git/commitdiff
listbox kbd handling buglet corrected (event.Skip() called even when no
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 16 Dec 1998 08:11:17 +0000 (08:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 16 Dec 1998 08:11:17 +0000 (08:11 +0000)
selection)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 3d4dd017291749a8b8478894211c30b4cef898f9..7e2bbc83914a18aac74530189f869c4f113d8703 100644 (file)
@@ -1384,7 +1384,12 @@ void wxListMainWindow::OnChar( wxKeyEvent &event )
     return;
   }
 */
     return;
   }
 */
-  if (!m_current) return;
+  if ( !m_current )
+  {
+      event.Skip();
+      return;
+  }
+
   switch (event.KeyCode())
   {
     case WXK_UP:
   switch (event.KeyCode())
   {
     case WXK_UP: