]> git.saurik.com Git - wxWidgets.git/commitdiff
use 'i' and 'd' instead of WXK_DELETE/INSERT as wxMSW list control doesn't get the...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 May 2008 01:05:43 +0000 (01:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 May 2008 01:05:43 +0000 (01:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/listctrl/listtest.cpp

index b969e64239cdf51da4b3cfb141a1a3777eceee1d..a52d375dd641560c7f827d57983e31750e5a17d1 100644 (file)
@@ -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;