From 67167e345df661d0344e7b6d1e7ebea4da42920d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 19 Nov 2002 18:54:46 +0000 Subject: [PATCH] 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 --- src/common/menucmn.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index cc2f6db2e3..05bb4f7f8c 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -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; } }