Cocoa: Use actual modifiers when sending ShortcutOverride event
Probably a typo since keyCode clearly has no modifiers encoded. Change-Id: I1c7908b06a759baf7b2c3462861a5d61f8c52b9f Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
parent
680b6b2192
commit
85a6446164
@ -177,7 +177,7 @@ static inline QT_MANGLE_NAMESPACE(QCocoaMenuLoader) *getMenuLoader()
|
||||
}
|
||||
|
||||
QKeyEvent accel_ev(QEvent::ShortcutOverride, (keyCode & (~Qt::KeyboardModifierMask)),
|
||||
Qt::KeyboardModifiers(keyCode & Qt::KeyboardModifierMask));
|
||||
Qt::KeyboardModifiers(modifiers & Qt::KeyboardModifierMask));
|
||||
accel_ev.ignore();
|
||||
QCoreApplication::sendEvent(object, &accel_ev);
|
||||
if (accel_ev.isAccepted()) {
|
||||
|
Loading…
Reference in New Issue
Block a user