Fix deprecated macOS key modifiers

This commit is contained in:
Jonas Kvinge
2019-08-16 22:27:48 +02:00
parent a33e6c03e4
commit 16edc52bae
3 changed files with 7 additions and 7 deletions

View File

@@ -392,16 +392,16 @@ QKeySequence KeySequenceFromNSEvent(NSEvent* event) {
}
}
if (modifiers & NSShiftKeyMask) {
if (modifiers & NSEventModifierFlagShift) {
key += Qt::SHIFT;
}
if (modifiers & NSControlKeyMask) {
if (modifiers & NSEventModifierFlagControl) {
key += Qt::META;
}
if (modifiers & NSAlternateKeyMask) {
if (modifiers & NSEventModifierFlagOption) {
key += Qt::ALT;
}
if (modifiers & NSCommandKeyMask) {
if (modifiers & NSEventModifierFlagCommand) {
key += Qt::CTRL;
}