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
This commit is contained in:
Vadim Zeitlin 2008-05-30 01:05:43 +00:00
parent 508b652335
commit 17483f70a5

View File

@ -981,7 +981,7 @@ void MyListCtrl::OnListKeyDown(wxListEvent& event)
} }
break; break;
case WXK_DELETE: case 'D': // delete
item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
while ( item != -1 ) while ( item != -1 )
{ {
@ -995,7 +995,7 @@ void MyListCtrl::OnListKeyDown(wxListEvent& event)
} }
break; break;
case WXK_INSERT: case 'I': // insert
if ( GetWindowStyle() & wxLC_REPORT ) if ( GetWindowStyle() & wxLC_REPORT )
{ {
if ( GetWindowStyle() & wxLC_VIRTUAL ) if ( GetWindowStyle() & wxLC_VIRTUAL )
@ -1030,8 +1030,10 @@ void MyListCtrl::OnChar(wxKeyEvent& event)
case 'R': case 'R':
case 'u': case 'u':
case 'U': case 'U':
case WXK_DELETE: case 'd':
case WXK_INSERT: case 'D':
case 'i':
case 'I':
// these are the keys we process ourselves // these are the keys we process ourselves
break; break;