]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't call SetItemCmd for WXK_UP or WXK_RIGHT since these values
authorJulian Smart <julian@anthemion.co.uk>
Sun, 16 May 2004 18:11:21 +0000 (18:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 16 May 2004 18:11:21 +0000 (18:11 +0000)
have special significance, and cause indentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/uma.cpp

index b7061575adb9beb398559fe4dcd9806384fbcf65..4dc05eedf3ae2c6577d3f7bbb7f58e19ebb18cee 100644 (file)
@@ -382,7 +382,11 @@ void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEn
             }
         }
 
-        SetItemCmd( menu, item , macKey );
+        // 1d and 1e have special meaning to SetItemCmd, so
+        // do not use for these character codes.
+        if (key != WXK_UP && key != WXK_RIGHT)
+            SetItemCmd( menu, item , macKey );
+
         SetMenuItemModifiers(menu, item , modifiers ) ;
 
         if ( glyph )