X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/902725eefee5a402d21d13b2630583ab28ae3931..ddc5c471d4d8d185e9f2bb9c91c92ddd3a2afff8:/src/common/menucmn.cpp diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 7897bf2f6b..e2b21ee6b6 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -289,14 +289,14 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label) keyCode = WXK_WINDOWS_LEFT; else if ( current == wxT("WINDOWS_RIGHT") ) keyCode = WXK_WINDOWS_RIGHT; - else if ( current == wxT("WINDOWS_MENU") ) + else if ( current == wxT("WINDOWS_MENU") ) keyCode = WXK_WINDOWS_MENU; else if ( current == wxT("COMMAND") ) keyCode = WXK_COMMAND; - else if ( current.Left(3) == wxT("KP_") && wxIsdigit(current[3U]) ) { - keyCode = WXK_NUMPAD0 + wxAtoi(current.c_str() + 3); } - else if ( current.Left(7) == wxT("SPECIAL") && wxIsdigit(current[7U]) ) { - keyCode = WXK_SPECIAL1 + wxAtoi(current.c_str() + 7) - 1; } + else if ( current.Left(3) == wxT("KP_") && wxIsdigit(current[3U]) ) + keyCode = WXK_NUMPAD0 + wxAtoi(current.c_str() + 3); + else if ( current.Left(7) == wxT("SPECIAL") && wxIsdigit(current[7U]) ) + keyCode = WXK_SPECIAL1 + wxAtoi(current.c_str() + 7) - 1; else { wxLogDebug(wxT("Unrecognized accel key '%s', accel string ignored."),