diff --git a/src/Widgets/TerminalWidget.vala b/src/Widgets/TerminalWidget.vala index 27f7a27592..d9e431f978 100644 --- a/src/Widgets/TerminalWidget.vala +++ b/src/Widgets/TerminalWidget.vala @@ -204,6 +204,7 @@ namespace Terminal { }; key_controller.key_pressed.connect (key_pressed); key_controller.key_released.connect (() => scroll_controller.flags = NONE); + key_controller.focus_out.connect (() => scroll_controller.flags = NONE); // XXX(Gtk3): This is used to stop the key_pressed() handler from breaking the copy last output action, // when a modifier is pressed, since it won't be in the modifier mask there (neither here).