Don't call SetItemCmd for WXK_UP or WXK_RIGHT since these values
have special significance, and cause indentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
45c6f72480
commit
1a03b3e25a
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user