Commit f094f600 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Disable handling Ctrl+Z as "cancel" action in KisToolMove

Basically, we shouldn't cancel the stroke on undo in "continued"
tool actions. Instead the user should use "Esc" key for that.

Otherwise the previous command (the one that came before the
current action) will be undone, which is not what the user wants.

Ideally we should finally implement an undo system for the move tool,
but it is still a todo.

CCBUG:392014
parent d72098bf
......@@ -279,6 +279,13 @@ void KisToolMove::requestStrokeCancellation()
cancelStroke();
}
void KisToolMove::requestUndoDuringStroke()
{
// we shouldn't cancel the stroke on Ctrl+Z, becasue it will not only
// cancel the stroke, but also undo the previous command, which we haven't
// yet pushed to the stack
}
void KisToolMove::beginPrimaryAction(KoPointerEvent *event)
{
startAction(event, moveToolMode());
......
......@@ -66,6 +66,7 @@ public Q_SLOTS:
public Q_SLOTS:
void requestStrokeEnd() override;
void requestStrokeCancellation() override;
void requestUndoDuringStroke() override;
protected Q_SLOTS:
void resetCursorStyle() override;
......
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