]> git.saurik.com Git - wxWidgets.git/commitdiff
allow untranslated accelerators, too
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 19 May 2003 16:45:47 +0000 (16:45 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 19 May 2003 16:45:47 +0000 (16:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/menucmn.cpp

index ad77746cc985bf2bd97bb05d1bab581be8a75baa..e6368d779ac5e4ad7264e11aa6e8fab2cbf7d75a 100644 (file)
@@ -94,11 +94,11 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label)
         wxString current;
         for ( size_t n = (size_t)posTab + 1; n < label.Len(); n++ ) {
             if ( (label[n] == '+') || (label[n] == '-') ) {
-                if ( current == _("ctrl") )
+                if ( current == _("ctrl") || current == _T("ctrl") )
                     accelFlags |= wxACCEL_CTRL;
-                else if ( current == _("alt") )
+                else if ( current == _("alt") || current == _T("alt") )
                     accelFlags |= wxACCEL_ALT;
-                else if ( current == _("shift") )
+                else if ( current == _("shift") || current == _T("shift") )
                     accelFlags |= wxACCEL_SHIFT;
                 else {
                     // we may have "Ctrl-+", for example, but we still want to