Commit ba9cecc0 authored by Laurent Montel's avatar Laurent Montel 😁

Fix default shortcut (next/preview message found by david)

parent 89873171
......@@ -3267,7 +3267,7 @@ void KMMainWidget::setupActions()
{
QAction *action = new QAction(i18n("&Next Message"), this);
actionCollection()->addAction(QStringLiteral("go_next_message"), action);
actionCollection()->setDefaultShortcut(action, QKeySequence(QStringLiteral("N; Right")));
actionCollection()->setDefaultShortcuts(action, QList<QKeySequence> { QKeySequence(Qt::Key_N), QKeySequence(Qt::Key_Right) });
KMail::Util::addQActionHelpText(action, i18n("Go to the next message"));
connect(action, &QAction::triggered, this, &KMMainWidget::slotSelectNextMessage);
}
......@@ -3288,7 +3288,7 @@ void KMMainWidget::setupActions()
QAction *action = new QAction(i18n("&Previous Message"), this);
actionCollection()->addAction(QStringLiteral("go_prev_message"), action);
KMail::Util::addQActionHelpText(action, i18n("Go to the previous message"));
actionCollection()->setDefaultShortcut(action, QKeySequence(QStringLiteral("P; Left")));
actionCollection()->setDefaultShortcuts(action, QList<QKeySequence> { QKeySequence(Qt::Key_P), QKeySequence(Qt::Key_Left) });
connect(action, &QAction::triggered, this, &KMMainWidget::slotSelectPreviousMessage);
}
{
......
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