fix(macos): adjust key_modifier_mask for SUPER modifier (#74)

This commit is contained in:
Lucas Fernandes Nogueira 2023-07-20 04:55:31 -07:00 committed by GitHub
parent db49402b5b
commit f4275fb157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ impl Accelerator {
if mods.contains(Modifiers::SHIFT) { if mods.contains(Modifiers::SHIFT) {
flags.insert(NSEventModifierFlags::NSShiftKeyMask); flags.insert(NSEventModifierFlags::NSShiftKeyMask);
} }
if mods.contains(Modifiers::META) { if mods.contains(Modifiers::SUPER) {
flags.insert(NSEventModifierFlags::NSCommandKeyMask); flags.insert(NSEventModifierFlags::NSCommandKeyMask);
} }
if mods.contains(Modifiers::ALT) { if mods.contains(Modifiers::ALT) {