Skip to content

Commit

Permalink
Swap CMD/ALT
Browse files Browse the repository at this point in the history
  • Loading branch information
frobware committed Oct 25, 2023
1 parent 2ebbfab commit 0fa2521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/macos/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ pub(super) fn event_mods(event: &NSEvent) -> ModifiersState {
);
m.set(
ModifiersState::ALT,
flags.contains(NSEventModifierFlags::NSAlternateKeyMask),
flags.contains(NSEventModifierFlags::NSCommandKeyMask),
);
m.set(
ModifiersState::LOGO,
flags.contains(NSEventModifierFlags::NSCommandKeyMask),
flags.contains(NSEventModifierFlags::NSAlternateKeyMask),
);
m
}
Expand Down

0 comments on commit 0fa2521

Please sign in to comment.