mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +03:00
fix leader key deactivating on key up
refs: https://github.com/wez/wezterm/issues/1520 refs: #1483
This commit is contained in:
parent
78c4c56425
commit
33dd3f393c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user