Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,18 @@ namespace Terminal {
case Gdk.Key.@6:
case Gdk.Key.@7:
case Gdk.Key.@8:
case Gdk.Key.KP_1: //alt+[1-8]
case Gdk.Key.KP_2:
case Gdk.Key.KP_3:
case Gdk.Key.KP_4:
case Gdk.Key.KP_5:
case Gdk.Key.KP_6:
case Gdk.Key.KP_7:
case Gdk.Key.KP_8:
if (keyval > 48 + 8) {
keyval -= (Gdk.Key.KP_1 - Gdk.Key.@1);
}
Comment on lines +495 to +497
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is hacky (honestly we should create a new method here) but that's out of scope of this PR.


if (MOD1_MASK in modifiers
&& Application.settings.get_boolean ("alt-changes-tab")
&& notebook.n_pages > 1) {
Expand All @@ -498,6 +510,7 @@ namespace Terminal {
break;

case Gdk.Key.@9:
case Gdk.Key.KP_9:
if (MOD1_MASK in modifiers
&& Application.settings.get_boolean ("alt-changes-tab")
&& notebook.n_pages > 1) {
Expand Down