1
1
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:
Wez Furlong 2021-02-13 09:11:55 -08:00
parent 7b86a84bc3
commit 894d056947
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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,
}