From: buliabyak Date: Mon, 26 Feb 2007 17:46:38 +0000 (+0000) Subject: add some obligatory shortcuts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e08ba2d5de56edab76894079e8a79d16c73c6f3a;p=inkscape.git add some obligatory shortcuts --- 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; }