Use alt modifier instead of cmd to add selections

This commit is contained in:
Nathan Sobo 2021-11-23 16:23:30 -07:00
parent 9e651ee127
commit 73afb29b04
4 changed files with 12 additions and 5 deletions

View file

@ -92,6 +92,8 @@ impl Event {
native_event.locationInWindow().x as f32,
window_height - native_event.locationInWindow().y as f32,
),
ctrl: modifiers.contains(NSEventModifierFlags::NSControlKeyMask),
alt: modifiers.contains(NSEventModifierFlags::NSAlternateKeyMask),
shift: modifiers.contains(NSEventModifierFlags::NSShiftKeyMask),
cmd: modifiers.contains(NSEventModifierFlags::NSCommandKeyMask),
click_count: native_event.clickCount() as usize,