Added further accelerators, though Up/Down/Left/Right are still

not working for some reason.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-11-05 13:42:23 +00:00
parent 8f05d8f9d5
commit ceecd70a6b
2 changed files with 54 additions and 0 deletions

View File

@@ -1335,6 +1335,33 @@ static wxString GetHotKey( const wxMenuItem& item )
case WXK_DELETE:
hotkey << wxT("Delete" );
break;
case WXK_UP:
hotkey << wxT("Up" );
break;
case WXK_DOWN:
hotkey << wxT("Down" );
break;
case WXK_PAGEUP:
hotkey << wxT("Prior" );
break;
case WXK_PAGEDOWN:
hotkey << wxT("Next" );
break;
case WXK_LEFT:
hotkey << wxT("Left" );
break;
case WXK_RIGHT:
hotkey << wxT("Right" );
break;
case WXK_HOME:
hotkey << wxT("Home" );
break;
case WXK_END:
hotkey << wxT("End" );
break;
case WXK_RETURN:
hotkey << wxT("Return" );
break;
// if there are any other keys wxGetAccelFromString() may
// return, we should process them here

View File

@@ -1335,6 +1335,33 @@ static wxString GetHotKey( const wxMenuItem& item )
case WXK_DELETE:
hotkey << wxT("Delete" );
break;
case WXK_UP:
hotkey << wxT("Up" );
break;
case WXK_DOWN:
hotkey << wxT("Down" );
break;
case WXK_PAGEUP:
hotkey << wxT("Prior" );
break;
case WXK_PAGEDOWN:
hotkey << wxT("Next" );
break;
case WXK_LEFT:
hotkey << wxT("Left" );
break;
case WXK_RIGHT:
hotkey << wxT("Right" );
break;
case WXK_HOME:
hotkey << wxT("Home" );
break;
case WXK_END:
hotkey << wxT("End" );
break;
case WXK_RETURN:
hotkey << wxT("Return" );
break;
// if there are any other keys wxGetAccelFromString() may
// return, we should process them here