From 4041715b5a0775ed6c8fec80d8b317c1655df2b5 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Tue, 10 Jul 2007 13:34:55 +0000 Subject: [PATCH] Click-select entire 3D boxes instead of only single faces; faces can still be selected with (Alt+)Ctrl-Click --- src/box3d-context.cpp | 2 +- src/tools-switch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp index ab95e7f5e..f9b2a1838 100644 --- a/src/box3d-context.cpp +++ b/src/box3d-context.cpp @@ -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; diff --git a/src/tools-switch.cpp b/src/tools-switch.cpp index bc9655a83..fd8acad23 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -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, _("Drag to create a 3D box. Drag controls to resize in perspective. Click to select.")); + dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("Drag to create a 3D box. Drag controls to resize in perspective. Click to select (with Ctrl+Alt for single faces).")); break; case TOOLS_SHAPES_ARC: dt->set_event_context(SP_TYPE_ARC_CONTEXT, tool_names[num]); -- 2.30.2