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
wilder-portage
Axel Navarro 6 years ago committed by Kurt Hindenburg
parent 020f565572
commit 57c942d91b
  1. 5
      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);
}
}

Loading…
Cancel
Save