Code

Fix Ctrl+Alt+click deletion of selected nodes when transform handles
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Wed, 20 Jan 2010 22:04:49 +0000 (23:04 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Wed, 20 Jan 2010 22:04:49 +0000 (23:04 +0100)
are turned on.

src/ui/tool/control-point-selection.cpp
src/ui/tool/curve-drag-point.cpp

index d1ff5f9d895ffcf4f1b558395a9483c899fa45c4..615968fef2a68a205863bd95b37787f177ba1b9b 100644 (file)
@@ -339,8 +339,7 @@ bool ControlPointSelection::_pointClicked(SelectableControlPoint *p, GdkEventBut
 {
     // clicking a selected node should toggle the transform handles between rotate and scale mode,
     // if they are visible
-    if (held_shift(*event)) return false;
-    if (_handles_visible && p->selected()) {
+    if (held_no_modifiers(*event) && _handles_visible && p->selected()) {
         toggleTransformHandlesMode();
         return true;
     }
index 57ae776e3db6e387032b88784f698fc6c5580dce..0e02761736cff695d269f13afbc9e78d5b1bd308 100644 (file)
@@ -169,17 +169,21 @@ Glib::ustring CurveDragPoint::_getTip(unsigned state)
     if (!first || !first.next()) return "";
     bool linear = first->front()->isDegenerate() && first.next()->back()->isDegenerate();
     if (state_held_shift(state)) {
-        return C_("Path segment statusbar tip",
+        return C_("Path segment tip",
             "<b>Shift:</b> click to toggle segment selection");
     }
+    if (state_held_control(state) && state_held_alt(state)) {
+        return C_("Path segment tip",
+            "<b>Ctrl+Alt:</b> click to insert a node");
+    }
     if (linear) {
-        return C_("Path segment statusbar tip",
+        return C_("Path segment tip",
             "<b>Linear segment:</b> drag to convert to a Bezier segment, "
-            "doubleclick to insert node, click to select this segment");
+            "doubleclick to insert node, click to select");
     } else {
-        return C_("Path segment statusbar tip",
+        return C_("Path segment tip",
             "<b>Bezier segment:</b> drag to shape the segment, doubleclick to insert node, "
-            "click to select this segment");
+            "click to select");
     }
 }