From: Vadim Zeitlin Date: Fri, 30 May 2008 01:05:43 +0000 (+0000) Subject: use 'i' and 'd' instead of WXK_DELETE/INSERT as wxMSW list control doesn't get the... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/17483f70a5273ddea91cd67f03196d8a1c3f0359 use 'i' and 'd' instead of WXK_DELETE/INSERT as wxMSW list control doesn't get the latter keys in its OnListKeyDown() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index b969e64239..a52d375dd6 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -981,7 +981,7 @@ void MyListCtrl::OnListKeyDown(wxListEvent& event) } break; - case WXK_DELETE: + case 'D': // delete item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); while ( item != -1 ) { @@ -995,7 +995,7 @@ void MyListCtrl::OnListKeyDown(wxListEvent& event) } break; - case WXK_INSERT: + case 'I': // insert if ( GetWindowStyle() & wxLC_REPORT ) { if ( GetWindowStyle() & wxLC_VIRTUAL ) @@ -1030,8 +1030,10 @@ void MyListCtrl::OnChar(wxKeyEvent& event) case 'R': case 'u': case 'U': - case WXK_DELETE: - case WXK_INSERT: + case 'd': + case 'D': + case 'i': + case 'I': // these are the keys we process ourselves break;