fix(ux): make sure esc works as expected in unlock-first (#3660)

* fix(ux): make sure esc always drops us back to base mode

* fix(ux): add locked
This commit is contained in:
Aram Drevekenin 2024-10-10 16:37:16 +02:00 committed by GitHub
parent 019f23056b
commit ec1eea3ba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1291,6 +1291,9 @@ keybinds clear-defaults=true {{
bind "{primary_modifier} g" {{ SwitchToMode "Locked"; }}
bind "{primary_modifier} q" {{ Quit; }}
}}
shared_except "renamepane" "renametab" "entersearch" "locked" {{
bind "esc" {{ SwitchToMode "locked"; }}
}}
shared_among "normal" "locked" {{
bind "{secondary_modifier} n" {{ NewPane; }}
bind "{secondary_modifier} f" {{ ToggleFloatingPanes; }}