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:
parent
c75abb51c4
commit
352e5999bc
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue