Catching a KeyPress for control keys

Hello!

I have a class that catches keyPressed(const juce::KeyPress &key) any letter key I press.
But I cannot catch such keys as Option, Command, Control, Shift.

What am I missing?

Thanks in advance!

D.

Solved.

By using modifierKeysChanged ( const juce::ModifierKeys & modifiers ) instead.

I think this is a long term JUCE bug. Description says KeyPress should be triggered on modifiers, too. But it is not.

2 Likes