mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 21:49:33 +00:00
Expose a count
field on Event::LeftMouseDown
This commit is contained in:
parent
e1d4bcf013
commit
005a7076af
2 changed files with 2 additions and 0 deletions
|
@ -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 a new issue