From e08ba2d5de56edab76894079e8a79d16c73c6f3a Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 26 Feb 2007 17:46:38 +0000 Subject: [PATCH] add some obligatory shortcuts --- src/flood-context.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; } -- 2.30.2