Commit 15c79263 authored by Nate Graham's avatar Nate Graham 💤
Browse files

Use KDE shortcuts for "move to trash" action coming from QStandardKey

QKeySequence::Delete is the Qt "Move to trash" action, which, by
default, includes Ctrl+D as a shortcut. This is something we don't want
in KDE software, so we need to intercept this action in our integration
plugin and give it the standard KDE shortcuts instead, as we do for
other actions.

BUG: 426573
FIXED-IN: 5.20
parent 857ee264
......@@ -257,6 +257,8 @@ QList<QKeySequence> KdePlatformTheme::keyBindings(QKeySequence::StandardKey key)
return KStandardShortcut::shortcut(KStandardShortcut::TabNext);
case QKeySequence::PreviousChild:
return KStandardShortcut::shortcut(KStandardShortcut::TabPrev);
case QKeySequence::Delete:
return KStandardShortcut::shortcut(KStandardShortcut::MoveToTrash);
default:
return QPlatformTheme::keyBindings(key);
}
......
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