From: Włodzimierz Skiba Date: Fri, 21 Oct 2005 19:06:45 +0000 (+0000) Subject: Allow translated 'Space' in menu accelerators (perhaps more entries should allow... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0ad966eeac4c245a745c6a2056613f9c7367e4b2?ds=sidebyside Allow translated 'Space' in menu accelerators (perhaps more entries should allow it). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index e53e576b05..2437f07e4b 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: common/menucmn.cpp +// Name: src/common/menucmn.cpp // Purpose: wxMenu and wxMenuBar methods common to all ports // Author: Vadim Zeitlin // Modified by: @@ -189,7 +189,7 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label) keyCode = WXK_HOME; else if ( current == wxT("END") ) keyCode = WXK_END; - else if ( current == wxT("SPACE") ) + else if ( current == wxT("SPACE") || current == _("SPACE") ) keyCode = WXK_SPACE; else if ( current == wxT("TAB") ) keyCode = WXK_TAB;