keys: avoid scrolling to bottom when CapsLock is pressed

refs: https://github.com/wez/wezterm/issues/3306
This commit is contained in:
Wez Furlong committed 2023-03-21 09:17:24 -07:00
1 parent 601e32e625
commit 0b83c97427
1 file changed
+1
+1
View File
@@ -387,6 +387,7 @@ impl super::TermWindow {
if res.is_ok() {
if is_down
&& !keycode.is_modifier()
&& *keycode != KeyCode::CapsLock
&& self.pane_state(pane.pane_id()).overlay.is_none()
{
self.maybe_scroll_to_bottom_for_input(&pane);