Fix assorted linux issues (#10061)
- Fix a bug where modifiers would be dispatched before they changed - Add a secondary modifier - Improve keybindings Release Notes: - N/A
This commit is contained in:
parent
e0cd96db7b
commit
1da2441e7b
20 changed files with 220 additions and 154 deletions
|
@ -418,7 +418,7 @@ impl<D: PickerDelegate> Picker<D> {
|
|||
.id(("item", ix))
|
||||
.cursor_pointer()
|
||||
.on_click(cx.listener(move |this, event: &ClickEvent, cx| {
|
||||
this.handle_click(ix, event.down.modifiers.command, cx)
|
||||
this.handle_click(ix, event.down.modifiers.secondary(), cx)
|
||||
}))
|
||||
// As of this writing, GPUI intercepts `ctrl-[mouse-event]`s on macOS
|
||||
// and produces right mouse button events. This matches platforms norms
|
||||
|
@ -427,7 +427,9 @@ impl<D: PickerDelegate> Picker<D> {
|
|||
.on_mouse_up(
|
||||
MouseButton::Right,
|
||||
cx.listener(move |this, event: &MouseUpEvent, cx| {
|
||||
this.handle_click(ix, event.modifiers.command, cx)
|
||||
// We specficially want to use the platform key here, as
|
||||
// ctrl will already be held down for the tab switcher.
|
||||
this.handle_click(ix, event.modifiers.platform, cx)
|
||||
}),
|
||||
)
|
||||
.children(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue