1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

fixed a key shortcut problem with native menus

This commit is contained in:
jules 2007-07-04 10:36:08 +00:00
parent 8439780b0b
commit 9e85c67fa2

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)
{