aboutsummaryrefslogtreecommitdiff
path: root/src/gui/kstandardshortcut.cpp
diff options
context:
space:
mode:
authorNate Graham <nate@kde.org>2019-12-09 17:52:03 +0100
committerNate Graham <nate@kde.org>2019-12-09 17:52:36 +0100
commit912ec731b8bd9eca12ae21920c81bcddfb46622b (patch)
tree85d6b5109befb3c4deee66f17aa0cfeb8fe0a52c /src/gui/kstandardshortcut.cpp
parent438af016f83620502cf1f25515940d9ded3fea57 (diff)
downloadkconfig-912ec731b8bd9eca12ae21920c81bcddfb46622b.tar.gz
kconfig-912ec731b8bd9eca12ae21920c81bcddfb46622b.tar.bz2
Add a comment pointing to the history of Cut and Delete sharing a shortcut
Diffstat (limited to 'src/gui/kstandardshortcut.cpp')
-rw-r--r--src/gui/kstandardshortcut.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kstandardshortcut.cpp b/src/gui/kstandardshortcut.cpp
index 4506be7d..68bf5532 100644
--- a/src/gui/kstandardshortcut.cpp
+++ b/src/gui/kstandardshortcut.cpp
@@ -80,6 +80,8 @@ static KStandardShortcutInfo g_infoStandardShortcut[] = {
//Group Edit
{ Undo, "Undo", QT_TRANSLATE_NOOP3("KStandardShortcut", "Undo", "@action"), CTRL(Z), 0, QList<QKeySequence>(), false },
{ Redo, "Redo", QT_TRANSLATE_NOOP3("KStandardShortcut", "Redo", "@action"), CTRLSHIFT(Z), 0, QList<QKeySequence>(), false },
+ // Both "Cut" and "Delete" use Shift+Delete, but this is okay; see
+ // https://cgit.kde.org/kxmlgui.git/commit/?id=8eabbf6725386e716b7536c71a9181dfe5d959f0
{ Cut, "Cut", QT_TRANSLATE_NOOP3("KStandardShortcut", "Cut", "@action"), CTRL(X), SHIFT(Delete), QList<QKeySequence>(), false },
{ Copy, "Copy", QT_TRANSLATE_NOOP3("KStandardShortcut", "Copy", "@action"), CTRL(C), CTRL(Insert), QList<QKeySequence>(), false },
{ Paste, "Paste", QT_TRANSLATE_NOOP3("KStandardShortcut", "Paste", "@action"), CTRL(V), SHIFT(Insert), QList<QKeySequence>(), false },
@@ -169,6 +171,8 @@ static KStandardShortcutInfo g_infoStandardShortcut[] = {
{ SwitchApplicationLanguage, "SwitchApplicationLanguage", QT_TRANSLATE_NOOP3("KStandardShortcut", "Switch Application Language", "@action"), 0, 0, QList<QKeySequence>(), false },
{ AboutApp, "AboutApp", QT_TRANSLATE_NOOP3("KStandardShortcut", "About Application", "@action"), 0, 0, QList<QKeySequence>(), false },
{ AboutKDE, "AboutKDE", QT_TRANSLATE_NOOP3("KStandardShortcut", "About KDE", "@action"), 0, 0, QList<QKeySequence>(), false },
+ // Both "Cut" and "Delete" use Shift+Delete, but this is okay; see
+ // https://cgit.kde.org/kxmlgui.git/commit/?id=8eabbf6725386e716b7536c71a9181dfe5d959f0
{ DeleteFile, "DeleteFile", QT_TRANSLATE_NOOP3("KStandardShortcut", "Delete", "@action"), SHIFT(Delete), 0, QList<QKeySequence>(), false },
{ RenameFile, "RenameFile", QT_TRANSLATE_NOOP3("KStandardShortcut", "Rename", "@action"), Qt::Key_F2, 0, QList<QKeySequence>(), false },
{ MoveToTrash, "MoveToTrash", QT_TRANSLATE_NOOP3("KStandardShortcut", "Move to Trash", "@action"), Qt::Key_Delete, 0, QList<QKeySequence>(), false },