1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-28 07:55:03 +03:00

fix leader key deactivating on key up

refs: https://github.com/wez/wezterm/issues/1520
refs: #1483
This commit is contained in:
Wez Furlong 2022-01-07 14:10:27 -07:00
parent 78c4c56425
commit 33dd3f393c

View File

@ -340,7 +340,7 @@ impl super::TermWindow {
match key {
Key::Code(key) => {
if leader_active && !key.is_modifier() {
if window_key.key_is_down && leader_active && !key.is_modifier() {
// Leader was pressed and this non-modifier keypress isn't
// a registered key binding; swallow this event and cancel
// the leader modifier.