Commit 722cc870 authored by Nate Graham's avatar Nate Graham
Browse files

Use old id for "Peek at Desktop" to preserve existing shortcus

This code uses the DEF() macro which silently re-uses an untranslated
version of the string as the ID in the config file. So anytime you
change the text, a new entry will be created in the config flil and
users will lose any custom shortcut mappings.

To avoid this, use the DEF2() macro instead, which allows defining the
ID and the user-facing translated name differently.
parent 636b411b
Pipeline #205743 failed with stage
in 16 minutes and 19 seconds
......@@ -1091,7 +1091,7 @@ void Workspace::initShortcuts()
}
DEF(kli18n("Window to Next Screen"), Qt::META | Qt::SHIFT | Qt::Key_Right, slotWindowToNextScreen);
DEF(kli18n("Window to Previous Screen"), Qt::META | Qt::SHIFT | Qt::Key_Left, slotWindowToPrevScreen);
DEF(kli18n("Peek at Desktop"), Qt::META | Qt::Key_D, slotToggleShowDesktop);
DEF2("Show Desktop", kli18n("Peek at Desktop"), Qt::META | Qt::Key_D, slotToggleShowDesktop);
for (int i = 0; i < 8; ++i) {
DEF3(kli18n("Switch to Screen %1"), 0, slotSwitchToScreen, i);
......
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