Added some more accelerator possibilities, such as Ctrl+Enter, Ctrl+Home

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-09-28 20:06:45 +00:00
parent 4c77c8865a
commit 5ea82140ee

View File

@@ -159,14 +159,33 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
else if ( current == wxT("INSERT") ) {
keyCode = WXK_INSERT;
}
#if 0
else if ( current == wxT("ENTER") || current == wxT("RETURN") ) {
keyCode = WXK_RETURN;
}
else if ( current == wxT("PGUP") ) {
keyCode = VK_PRIOR;
keyCode = WXK_PRIOR;
}
else if ( current == wxT("PGDN") ) {
keyCode = VK_NEXT;
keyCode = WXK_NEXT;
}
else if ( current == wxT("LEFT") ) {
keyCode = WXK_LEFT;
}
else if ( current == wxT("RIGHT") ) {
keyCode = WXK_RIGHT;
}
else if ( current == wxT("UP") ) {
keyCode = WXK_UP;
}
else if ( current == wxT("DOWN") ) {
keyCode = WXK_DOWN;
}
else if ( current == wxT("HOME") ) {
keyCode = WXK_HOME;
}
else if ( current == wxT("END") ) {
keyCode = WXK_END;
}
#endif
else
{
wxLogDebug(wxT("Unrecognized accel key '%s', accel string ignored."),