Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix word-next and previous text navigation shortcuts.

Wolthera van Hövell tot Westerflier12eca4786ae2
diff --git a/plugins/tools/svgtexttool/SvgTextCursor.cpp b/plugins/tools/svgtexttool/SvgTextCursor.cpp
index 268b911a69..599418c58c 100644
--- a/plugins/tools/svgtexttool/SvgTextCursor.cpp
+++ b/plugins/tools/svgtexttool/SvgTextCursor.cpp
@@ -1439,10 +1439,9 @@ void SvgTextCursor::keyPressEvent(QKeyEvent *event)
if (action->shortcut() == testSequence) {
event->accept();
action->trigger();
- break;
+ return;
}
}
- if (event->isAccepted()) return;
// This first set is already tested above, however, if they still
// match, then it's one of the extra sequences for MacOs, which