[krita] plugins/tools/tool_transform2: Implement double Esc key press shortcut for canceling continued transform mode
Dmitry Kazakov
null at kde.org
Mon Apr 16 13:40:22 UTC 2018
Git commit ef43e85ef2815354e64c83583b4b734455d9d605 by Dmitry Kazakov.
Committed on 16/04/2018 at 13:40.
Pushed by dkazakov into branch 'master'.
Implement double Esc key press shortcut for canceling continued transform mode
Now if you start a continued transform mode in the transform tool,
you have two options:
1) Press Esc key once to reset the transformation to non-transformed
state
2) Press Esc key twice to cancel changing the continued transformation
CC:kimageshop at kde.org
BUG:361852
M +5 -1 plugins/tools/tool_transform2/kis_tool_transform.cc
https://commits.kde.org/krita/ef43e85ef2815354e64c83583b4b734455d9d605
diff --git a/plugins/tools/tool_transform2/kis_tool_transform.cc b/plugins/tools/tool_transform2/kis_tool_transform.cc
index 07d7c1f21c4..79deb4d9e6f 100644
--- a/plugins/tools/tool_transform2/kis_tool_transform.cc
+++ b/plugins/tools/tool_transform2/kis_tool_transform.cc
@@ -770,7 +770,11 @@ void KisToolTransform::requestStrokeEnd()
void KisToolTransform::requestStrokeCancellation()
{
- cancelStroke();
+ if (m_currentArgs.isIdentity()) {
+ cancelStroke();
+ } else {
+ slotResetTransform();
+ }
}
void KisToolTransform::startStroke(ToolTransformArgs::TransformMode mode, bool forceReset)
More information about the kimageshop
mailing list