From 2fbbaf5cd2828fa1898ccccc22e06750956e24a0 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 19 Dec 2024 08:31:46 +0800 Subject: [PATCH] Only reset/clear screen when is pressed Follow up of 3c84bcb98ecdadb4d5e0c7a8f52fb5238f5e92f0. --- src/Widgets/TerminalWidget.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Widgets/TerminalWidget.vala b/src/Widgets/TerminalWidget.vala index 7206af1c0b..1a2caa88e3 100644 --- a/src/Widgets/TerminalWidget.vala +++ b/src/Widgets/TerminalWidget.vala @@ -447,12 +447,12 @@ namespace Terminal { } } - if (CONTROL_MASK in modifiers && match_keycode (Gdk.Key.k, keycode)) { + if (CONTROL_MASK in modifiers && SHIFT_MASK in modifiers && match_keycode (Gdk.Key.k, keycode)) { action_reset (); return true; } - if (CONTROL_MASK in modifiers && match_keycode (Gdk.Key.l, keycode)) { + if (CONTROL_MASK in modifiers && SHIFT_MASK in modifiers && match_keycode (Gdk.Key.l, keycode)) { action_clear_screen (); return true; }