diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-02-26 17:46:38 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-02-26 17:46:38 +0000 |
| commit | d78ab200d502ff10cf8ecc4625aa339f963abf87 (patch) | |
| tree | c2d4435d880e20361e86a64095c7a74c401b91a3 /src/flood-context.cpp | |
| parent | Fix typo (diff) | |
| download | inkscape-d78ab200d502ff10cf8ecc4625aa339f963abf87.tar.gz inkscape-d78ab200d502ff10cf8ecc4625aa339f963abf87.zip | |
add some obligatory shortcuts
(bzr r2447)
Diffstat (limited to 'src/flood-context.cpp')
| -rw-r--r-- | src/flood-context.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp index 7cb0b15f6..46e7cbb91 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -528,6 +528,8 @@ static gint sp_flood_context_item_handler(SPEventContext *event_context, SPItem static gint sp_flood_context_root_handler(SPEventContext *event_context, GdkEvent *event) { + SPDesktop *desktop = event_context->desktop; + gint ret = FALSE; switch (event->type) { case GDK_BUTTON_PRESS: @@ -537,6 +539,22 @@ static gint sp_flood_context_root_handler(SPEventContext *event_context, GdkEven ret = TRUE; } break; + case GDK_KEY_PRESS: + switch (get_group0_keyval (&event->key)) { + case GDK_Up: + case GDK_Down: + case GDK_KP_Up: + case GDK_KP_Down: + // prevent the zoom field from activation + if (!MOD__CTRL_ONLY) + ret = TRUE; + break; + case GDK_Escape: + sp_desktop_selection(desktop)->clear(); + default: + break; + } + break; default: break; } |
