[krita] krita: Add Shift+Delete shortcut to the Remove Layer action
Dmitry Kazakov
dimula73 at gmail.com
Sat Jan 2 14:09:03 UTC 2016
Git commit b9ab0020c8d380a23447d2307cf7a458acaaf8ab by Dmitry Kazakov.
Committed on 02/01/2016 at 14:05.
Pushed by dkazakov into branch 'master'.
Add Shift+Delete shortcut to the Remove Layer action
CC:kimageshop at kde.org
M +1 -1 krita/data/shortcuts/krita_default.shortcuts
M +3 -3 krita/krita.action
M +2 -1 krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp
http://commits.kde.org/krita/b9ab0020c8d380a23447d2307cf7a458acaaf8ab
diff --git a/krita/data/shortcuts/krita_default.shortcuts b/krita/data/shortcuts/krita_default.shortcuts
index 19d9f58..dee67cd 100644
--- a/krita/data/shortcuts/krita_default.shortcuts
+++ b/krita/data/shortcuts/krita_default.shortcuts
@@ -221,7 +221,7 @@ previous_keyframe=none
previous_preset=/
rasterize_layer=none
reload_preset_action=none
-remove_layer=none
+remove_layer=Shift+Delete
reselect=Ctrl+Shift+D
resizeimagetolayer=none
resizeimagetoselection=none
diff --git a/krita/krita.action b/krita/krita.action
index aad4f28..dfff151 100644
--- a/krita/krita.action
+++ b/krita/krita.action
@@ -2509,8 +2509,8 @@
<iconText>Remove Layer</iconText>
<activationFlags>1000</activationFlags>
<activationConditions>1</activationConditions>
- <shortcut></shortcut>
- <defaultShortcut></defaultShortcut>
+ <shortcut>Shift+Delete</shortcut>
+ <defaultShortcut>Shift+Delete</defaultShortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
@@ -2520,7 +2520,7 @@
<whatsThis></whatsThis>
<toolTip>Move Layer or Mask Up</toolTip>
<iconText></iconText>
- <shortcut>Ctrl+PgDown</shortcut>
+ <shortcut>Ctrl+PgUp</shortcut>
<defaultShortcut>Ctrl+PgUp</defaultShortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
diff --git a/krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp b/krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp
index c48459b..b206f80 100644
--- a/krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp
+++ b/krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp
@@ -187,6 +187,7 @@ KisLayerBox::KisLayerBox()
m_removeAction->setActivationFlags(KisAction::ACTIVE_NODE);
m_removeAction->setActivationConditions(KisAction::ACTIVE_NODE_EDITABLE);
m_removeAction->setObjectName("remove_layer");
+ m_removeAction->setShortcut(QKeySequence(Qt::SHIFT + Qt::Key_Delete));
connect(m_removeAction, SIGNAL(triggered()), this, SLOT(slotRmClicked()));
m_actions.append(m_removeAction);
@@ -195,7 +196,7 @@ KisLayerBox::KisLayerBox()
action->setActivationFlags(KisAction::ACTIVE_NODE);
action->setActivationConditions(KisAction::ACTIVE_NODE_EDITABLE);
action->setObjectName("move_layer_up");
- action->setShortcut(Qt::CTRL + Qt::Key_PageUp);
+ action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_PageUp));
connect(action, SIGNAL(triggered()), this, SLOT(slotRaiseClicked()));
m_actions.append(action);
More information about the kimageshop
mailing list