I am having trouble recognizing right clicks. In my component, I implemented:
void modifierKeysChanged(const juce::ModifierKeys& modifiers) override;
When right clicking on some button of my component the “modifierKeysChanged()” is not triggered… Why?
-
When I press a different modifier, for example “alt”, it is triggered.
-
When I keep “alt” pressed and than start right clicking, the right clicks do trigger “modifierKeysChanged()”
I was checking this this way:
void MyComponent::modifierKeysChanged(const juce::ModifierKeys& modifiers) {
m_modKeys = modifiers;
if (m_modKeys.isAltDown()) {
DBG("alt is down");
}
if (m_modKeys.isRightButtonDown()) {
DBG("right is down");
}
}
To also get event from nested child components,I set:
addMouseListener(this,true);
Am I missing something or is this a Juce bug?