From e74bfc5d1a4b64f4d4f569a8f7d9a86a35f0e06d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 16 Dec 1998 08:11:17 +0000 Subject: [PATCH] listbox kbd handling buglet corrected (event.Skip() called even when no selection) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 3d4dd01729..7e2bbc8391 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1384,7 +1384,12 @@ void wxListMainWindow::OnChar( wxKeyEvent &event ) return; } */ - if (!m_current) return; + if ( !m_current ) + { + event.Skip(); + return; + } + switch (event.KeyCode()) { case WXK_UP: -- 2.45.2