1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 11:17:15 +03:00

input: don't scroll to bottom on key up events

refs: #1483
This commit is contained in:
Wez Furlong 2022-01-08 15:37:15 -07:00
parent 2f9ca151c2
commit 71bfa38cf4

View File

@ -160,7 +160,8 @@ impl super::TermWindow {
};
if res.is_ok() {
if !keycode.is_modifier()
if is_down
&& !keycode.is_modifier()
&& self.pane_state(pane.pane_id()).overlay.is_none()
{
self.maybe_scroll_to_bottom_for_input(&pane);
@ -366,7 +367,10 @@ impl super::TermWindow {
};
if res.is_ok() {
if !key.is_modifier() && self.pane_state(pane.pane_id()).overlay.is_none() {
if window_key.key_is_down
&& !key.is_modifier()
&& self.pane_state(pane.pane_id()).overlay.is_none()
{
self.maybe_scroll_to_bottom_for_input(&pane);
}
context.set_cursor(None);