From 57c942d91b6ddb35f357770d17ccc161ba1860fd Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Mon, 1 Jun 2020 13:25:59 -0300 Subject: [PATCH] Add default shortcut to switch-to-tab-9 action Add the missing Alt+0 shortcut to the 10th tab to complete the range from Alt+1 to Alt+0 in the keyboard --- src/ViewManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 0a360a8a..5d9578cb 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -252,9 +252,12 @@ void ViewManager::setupActions() collection->addAction(QStringLiteral("switch-to-tab-%1").arg(i), action); _multiTabOnlyActions << action; - // only add default shortcut bindings for the first 9 tabs, regardless of SWITCH_TO_TAB_COUNT + // only add default shortcut bindings for the first 10 tabs, regardless of SWITCH_TO_TAB_COUNT if (i < 9) { collection->setDefaultShortcut(action, QStringLiteral("Alt+%1").arg(i + 1)); + } else if (i == 9) { + // add shortcut for 10th tab + collection->setDefaultShortcut(action, Qt::ALT + Qt::Key_0); } }