Browse Source

fixed a key shortcut problem with native menus

tags/2021-05-28
jules 18 years ago
parent
commit
9e85c67fa2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      build/macosx/platform_specific_code/juce_mac_Windowing.cpp

+ 2
- 0
build/macosx/platform_specific_code/juce_mac_Windowing.cpp View File

@@ -2698,6 +2698,8 @@ private:
keyCode = (tchar) ((T('0') - KeyPress::numberPad0) + kp.getKeyCode());
}

SetMenuItemCommandKey (m, index, true, 255);

if (CharacterFunctions::isLetterOrDigit (keyCode)
|| CharacterFunctions::indexOfChar (T(",.;/\\'[]=-+_<>?{}\":"), keyCode, false) >= 0)
{


Loading…
Cancel
Save