mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +03:00
wayland: allow matching raw modifiers for raw:123 key bindings
This commit is contained in:
parent
7b86a84bc3
commit
894d056947
@ -15,6 +15,7 @@ brief notes about them may accumulate here.
|
||||
* Fixed an issue where large pastes could result in a hang
|
||||
* Updated bundled JetBrainsMono font to version 2.225
|
||||
* Fixed an issue where the window would be redrawn on mouse move. This was most noticeable as a laggy mouse pointer when moving the mouse across a window running on the nouveau display driver on X11 and Wayland systems
|
||||
* Wayland: the raw key modifiers are now correctly propagated so that they activate when used with key assignments using the `key = "raw:123"` binding syntax.
|
||||
|
||||
### 20210203-095643-70a364eb
|
||||
|
||||
|
@ -285,10 +285,10 @@ impl WaylandWindowInner {
|
||||
pair => pair,
|
||||
};
|
||||
|
||||
let (modifiers, raw_modifiers) = if raw_key.is_some() {
|
||||
(Modifiers::NONE, self.modifiers)
|
||||
let modifiers = if raw_key.is_some() {
|
||||
Modifiers::NONE
|
||||
} else {
|
||||
(self.modifiers, Modifiers::NONE)
|
||||
self.modifiers
|
||||
};
|
||||
|
||||
let key_event = KeyEvent {
|
||||
@ -296,7 +296,7 @@ impl WaylandWindowInner {
|
||||
key,
|
||||
raw_key,
|
||||
modifiers,
|
||||
raw_modifiers,
|
||||
raw_modifiers: self.modifiers,
|
||||
raw_code: Some(raw_code),
|
||||
repeat_count: 1,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user