fix leader key deactivating on key up

refs: https://github.com/wez/wezterm/issues/1520
refs: #1483
This commit is contained in:
Wez Furlong committed 2022-01-07 14:10:27 -07:00
1 parent 78c4c56425
commit 33dd3f393c
1 file changed
+1 -1
+1 -1
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.