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:
parent
508b652335
commit
17483f70a5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user