1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Displaying modifier + delete key shortcuts in OSX main menus.

This commit is contained in:
jules 2012-09-07 17:42:02 +01:00
parent c75abb51c4
commit 352e5999bc

View file

@ -246,8 +246,9 @@ public:
{
const KeyPress& kp = keyPresses.getReference(0);
if (kp.getKeyCode() != KeyPress::backspaceKey // (adding these is annoying because it flashes the menu bar
&& kp.getKeyCode() != KeyPress::deleteKey) // every time you press the key while editing text)
if ((kp.getKeyCode() != KeyPress::backspaceKey // (adding these is annoying because it flashes the menu bar
&& kp.getKeyCode() != KeyPress::deleteKey) // every time you press the key while editing text)
|| kp.getModifiers().isAnyModifierKeyDown())
{
juce_wchar key = kp.getTextCharacter();
if (key == 0)