Hi!<br><br>Didn't it finish the gesture when the mouse button was released? Because I remember I wanted it to allow user to to the following kind of gesture:<br><br>1) Press Shift key<br>2) Start Mouse Drag operation<br>
3) Release Shift key or press *any* other keys --- the dragging will persist till you release the mouse. <br>4) Release the moube button --- this is the point when the gesture is stopped.<br><br>I guess, this was quite a convenient approach. <br>
<br>This patch breaks this behavior. Could you tell, which bug did you fix?<br> <br><br><div class="gmail_quote">On Sun, Dec 23, 2012 at 10:39 PM, Sven Langkamp <span dir="ltr"><<a href="mailto:sven.langkamp@gmail.com" target="_blank">sven.langkamp@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Git commit d3a5208277369c42e91d28f4740f8a8b217e9cdc by Sven Langkamp.<br>
Committed on 23/12/2012 at 19:39.<br>
Pushed by langkamp into branch 'master'.<br>
<br>
end gesture when shift key is released<br>
<br>
M  +3    -0    krita/ui/tool/kis_tool.cc<br>
<br>
<a href="http://commits.kde.org/calligra/d3a5208277369c42e91d28f4740f8a8b217e9cdc" target="_blank">http://commits.kde.org/calligra/d3a5208277369c42e91d28f4740f8a8b217e9cdc</a><br>
<br>
diff --git a/krita/ui/tool/kis_tool.cc b/krita/ui/tool/kis_tool.cc<br>
index cde18c0..b7f855f 100644<br>
--- a/krita/ui/tool/kis_tool.cc<br>
+++ b/krita/ui/tool/kis_tool.cc<br>
@@ -481,6 +481,9 @@ void KisTool::keyPressEvent(QKeyEvent *event)<br>
 void KisTool::keyReleaseEvent(QKeyEvent* event)<br>
 {<br>
     if (mode() == GESTURE_MODE) {<br>
+        if (event->key() == Qt::Key_Shift) {<br>
+            endGesture();<br>
+        }<br>
         event->accept();<br>
     } else {<br>
         event->ignore();<br>
</blockquote></div><br><br clear="all"><br>-- <br>Dmitry Kazakov