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++

Add a comment about changing focus while performing a touch gesture

Dmitry Kazakov9c7273bb25e6
diff --git a/libs/ui/input/kis_shortcut_matcher.cpp b/libs/ui/input/kis_shortcut_matcher.cpp
index 1281269b2c..91f228235b 100644
--- a/libs/ui/input/kis_shortcut_matcher.cpp
+++ b/libs/ui/input/kis_shortcut_matcher.cpp
@@ -660,7 +660,13 @@ void KisShortcutMatcher::lostFocusEvent(const QPointF &localPos)
forceDeactivateAllActions();
- // TODO: also deactivate all touch and native gestures on focus out
+ /// TODO: it might be that we should also deactivate
+ /// touch and native gestures on focus-out events.
+ /// After testing on Windows it seems like it works
+ /// fine without any explicit stopping the touch
+ /// strokes. They just continue in the unfocused
+ /// application (given that Krita does not get
+ /// overlapped by another window)
}
void KisShortcutMatcher::toolHasBeenActivated()