mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:42:20 +03:00
Expose a count
field on Event::LeftMouseDown
This commit is contained in:
parent
e1d4bcf013
commit
005a7076af
@ -15,6 +15,7 @@ pub enum Event {
|
||||
LeftMouseDown {
|
||||
position: Vector2F,
|
||||
cmd: bool,
|
||||
count: usize,
|
||||
},
|
||||
LeftMouseUp {
|
||||
position: Vector2F,
|
||||
|
@ -94,6 +94,7 @@ impl Event {
|
||||
cmd: native_event
|
||||
.modifierFlags()
|
||||
.contains(NSEventModifierFlags::NSCommandKeyMask),
|
||||
count: native_event.clickCount() as usize,
|
||||
})
|
||||
}
|
||||
NSEventType::NSLeftMouseUp => window_height.map(|window_height| Self::LeftMouseUp {
|
||||
|
Loading…
Reference in New Issue
Block a user