summaryrefslogtreecommitdiffstats
path: root/src/box3d-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-01-11 22:55:37 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-01-11 22:55:37 +0000
commit00efa90f30ef4a85660030ab6740f256c8cc5d21 (patch)
treeb9754ebd628645c50a90ff867c2b890908e4c5b3 /src/box3d-context.cpp
parent(bzr r4464) (diff)
downloadinkscape-00efa90f30ef4a85660030ab6740f256c8cc5d21.tar.gz
inkscape-00efa90f30ef4a85660030ab6740f256c8cc5d21.zip
Better handling of shortcuts in 3D box tool
(bzr r4465)
Diffstat (limited to 'src/box3d-context.cpp')
-rw-r--r--src/box3d-context.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index bbc8097f5..6450fa6d4 100644
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
@@ -574,35 +574,35 @@ static gint sp_box3d_context_root_handler(SPEventContext *event_context, GdkEven
break;
case GDK_x:
+ case GDK_X:
if (MOD__ALT_ONLY) {
desktop->setToolboxFocusTo ("altx-box3d");
ret = TRUE;
}
- break;
- case GDK_X:
- if (MOD__CTRL) break; // Don't catch Ctrl+X ('cut') and Ctrl+Shift+X ('open XML editor')
- persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::X);
- bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically?
- ret = true;
+ if (MOD__SHIFT_ONLY) {
+ persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::X);
+ bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically?
+ ret = true;
+ }
break;
+ case GDK_y:
case GDK_Y:
- {
- if (MOD__CTRL) break; // Don't catch Ctrl+Y ("redo")
- persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::Y);
- bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically?
- ret = true;
+ if (MOD__SHIFT_ONLY) {
+ persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::Y);
+ bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically?
+ ret = true;
+ }
break;
- }
+ case GDK_z:
case GDK_Z:
- {
- if (MOD__CTRL) break; // Don't catch Ctrl+Z ("undo")
- persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::Z);
- bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically?
- ret = true;
+ if (MOD__SHIFT_ONLY) {
+ persp3d_toggle_VPs(persp3d_currently_selected_persps(event_context), Proj::Z);
+ bc->_vpdrag->updateLines(); // FIXME: Shouldn't this be done automatically?
+ ret = true;
+ }
break;
- }
case GDK_Escape:
sp_desktop_selection(desktop)->clear();