X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..ec2df34e27ba41f202ecbf096cdfed082a9ddb8f:/src/osx/carbon/uma.cpp diff --git a/src/osx/carbon/uma.cpp b/src/osx/carbon/uma.cpp index 8606c1196f..a89ca35d15 100644 --- a/src/osx/carbon/uma.cpp +++ b/src/osx/carbon/uma.cpp @@ -79,7 +79,10 @@ void UMAInsertSubMenuItem( MenuRef menu , const wxString& title, wxFontEncoding void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) { if ( !entry ) + { + SetMenuItemCommandKey(menu, item, false, 0); return ; + } UInt8 modifiers = 0 ; SInt16 key = entry->GetKeyCode() ; @@ -93,6 +96,9 @@ void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEn if (entry->GetFlags() & wxACCEL_SHIFT) modifiers |= kMenuShiftModifier ; + if (entry->GetFlags() & wxACCEL_RAW_CTRL) + modifiers |= kMenuControlModifier ; + SInt16 glyph = 0 ; SInt16 macKey = key ; if ( key >= WXK_F1 && key <= WXK_F15 )