Skip to content

Commit

Permalink
Only reset/clear screen when <Shift> is pressed (#827)
Browse files Browse the repository at this point in the history
Follow up of 3c84bcb.
  • Loading branch information
bobby285271 authored Dec 19, 2024
1 parent 308191f commit 91b93d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Widgets/TerminalWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 91b93d8

Please sign in to comment.