Commit 374b602d authored by Albert Astals Cid's avatar Albert Astals Cid

Add new standard KDE tab switching shortcuts (ctrl+pgup/pgdn)

Summary:
BUG: 383603

Add the new KDE standard tab switching shortcuts that were introduced in https://phabricator.kde.org/R237:d85a57645f94d2d087711d7c608a0c5a46ed7ede.

Test Plan: Built and tested with current git master in up-to-date KDE Neon. Expected behavior is seen (default shortcuts have become shift+left/right and cmd+pgup/pgdn).

Reviewers: #kde_applications, #konsole, hindenburg, aacid, ltoscano, pino, dfaure

Reviewed By: dfaure

Subscribers: dfaure, davidedmundson, aacid, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D7354
parent 6d24721e
...@@ -245,11 +245,13 @@ void ViewManager::setupActions() ...@@ -245,11 +245,13 @@ void ViewManager::setupActions()
} }
// keyboard shortcut only actions // keyboard shortcut only actions
collection->setDefaultShortcut(nextViewAction, Qt::SHIFT + Qt::Key_Right); const QList<QKeySequence> nextViewActionKeys{Qt::SHIFT + Qt::Key_Right, Qt::CTRL + Qt::Key_PageDown};
collection->setDefaultShortcuts(nextViewAction, nextViewActionKeys);
connect(nextViewAction, &QAction::triggered, this, &Konsole::ViewManager::nextView); connect(nextViewAction, &QAction::triggered, this, &Konsole::ViewManager::nextView);
_viewSplitter->addAction(nextViewAction); _viewSplitter->addAction(nextViewAction);
collection->setDefaultShortcut(previousViewAction, Qt::SHIFT + Qt::Key_Left); const QList<QKeySequence> previousViewActionKeys{Qt::SHIFT + Qt::Key_Left, Qt::CTRL + Qt::Key_PageUp};
collection->setDefaultShortcuts(previousViewAction, previousViewActionKeys);
connect(previousViewAction, &QAction::triggered, this, &Konsole::ViewManager::previousView); connect(previousViewAction, &QAction::triggered, this, &Konsole::ViewManager::previousView);
_viewSplitter->addAction(previousViewAction); _viewSplitter->addAction(previousViewAction);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment