Commit 23d3fb45 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix "window to screen" and "switch to screen" shortcuts

BUG: 460337


(cherry picked from commit 4340a020)
parent 8599deba
Pipeline #247100 failed with stage
in 21 seconds
......@@ -1092,7 +1092,7 @@ void Workspace::initShortcuts()
Qt::META | Qt::CTRL | Qt::SHIFT | Qt::Key_Down, &Workspace::slotWindowToDesktopDown);
for (int i = 0; i < 8; ++i) {
initShortcut("Window to Screen %1", i18n("Window to Screen %1", i), 0, &Workspace::slotWindowToScreen);
initShortcut(QStringLiteral("Window to Screen %1").arg(i), i18n("Window to Screen %1", i), 0, &Workspace::slotWindowToScreen, i);
}
initShortcut("Window to Next Screen", i18n("Window to Next Screen"),
Qt::META | Qt::SHIFT | Qt::Key_Right, &Workspace::slotWindowToNextScreen);
......@@ -1102,7 +1102,7 @@ void Workspace::initShortcuts()
Qt::META | Qt::Key_D, &Workspace::slotToggleShowDesktop);
for (int i = 0; i < 8; ++i) {
initShortcut("Window to Screen %1", i18n("Switch to Screen %1", i), 0, &Workspace::slotSwitchToScreen);
initShortcut(QStringLiteral("Window to Screen %1").arg(i), i18n("Switch to Screen %1", i), 0, &Workspace::slotSwitchToScreen, i);
}
initShortcut("Switch to Next Screen", i18n("Switch to Next Screen"), 0, &Workspace::slotSwitchToNextScreen);
......
Supports Markdown
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