Added space and tab to key names recognised for accelerators

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-11-19 18:54:46 +00:00
parent 26227372e3
commit 67167e345d

View File

@@ -186,6 +186,12 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
else if ( current == wxT("END") ) {
keyCode = WXK_END;
}
else if ( current == wxT("SPACE") ) {
keyCode = WXK_SPACE;
}
else if ( current == wxT("TAB") ) {
keyCode = WXK_TAB;
}
else
{
wxLogDebug(wxT("Unrecognized accel key '%s', accel string ignored."),
@@ -808,7 +814,7 @@ int wxMenuBarBase::FindMenu(const wxString& title) const
(wxMenuItem::GetLabelFromText(title2) == label) )
{
// found
return (int)i;
return (int)i;
}
}