Code

Click-select entire 3D boxes instead of only single faces; faces can still be selecte...
authorcilix42 <cilix42@users.sourceforge.net>
Tue, 10 Jul 2007 13:34:55 +0000 (13:34 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Tue, 10 Jul 2007 13:34:55 +0000 (13:34 +0000)
src/box3d-context.cpp
src/tools-switch.cpp

index ab95e7f5e38c3f534fcf62d44cfffe304cf23a10..f9b2a183824ea8af55f096c5baa28e4df7f10635 100644 (file)
@@ -311,7 +311,7 @@ static gint sp_3dbox_context_root_handler(SPEventContext *event_context, GdkEven
             event_context->within_tolerance = true;
             
             // remember clicked item, disregarding groups, honoring Alt
-            event_context->item_to_select = sp_event_context_find_item (desktop, button_w, event->button.state & GDK_MOD1_MASK, TRUE);
+            event_context->item_to_select = sp_event_context_find_item (desktop, button_w, event->button.state & GDK_MOD1_MASK, event->button.state & GDK_CONTROL_MASK);
 
             dragging = true;
             
index bc9655a83b0d201691c3a8cffabf065d7ba32596..fd8acad235fb9e95a803b292ce471e432e26be50 100644 (file)
@@ -151,7 +151,7 @@ tools_switch(SPDesktop *dt, int num)
             dt->set_event_context(SP_TYPE_3DBOX_CONTEXT, tool_names[num]);
             dt->activate_guides(false);
             inkscape_eventcontext_set(sp_desktop_event_context(dt));
-            dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("<b>Drag</b> to create a 3D box. <b>Drag controls</b> to resize in perspective. <b>Click</b> to select."));
+            dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("<b>Drag</b> to create a 3D box. <b>Drag controls</b> to resize in perspective. <b>Click</b> to select (with <b>Ctrl+Alt</b> for single faces)."));
             break;
         case TOOLS_SHAPES_ARC:
             dt->set_event_context(SP_TYPE_ARC_CONTEXT, tool_names[num]);