My app has shortcuts keys for left and right arrow. I also have a component that responds to left and right arrow in it’s keyPressed() function.
In my component, if I get a left arrow I call leftComp->grabKeyboardFocus() and if it is a right arrow I call rightComp->grabKeyboardFocus()
Everything is fine if I don’t call grabKyboardFocus(), but if I do, then the global shortcut gets called, even though my component is eating the keypress.