From 822f4e842941cb0f7bbae99a19b70c2f7653e0c9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 17 Feb 2013 14:19:53 +0000 Subject: [PATCH] ignore tab key focus changes in elm_win if ctrl/alt is pressed: the trunk version SVN revision: 84021 --- legacy/elementary/ChangeLog | 4 ++++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elm_win.c | 3 +++ 3 files changed, 8 insertions(+) diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 3267a56..8ca8a33 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -1037,3 +1037,7 @@ 2013-02-17 Cedric Bail * Improve support on some 64bits system. + +2013-02-17 Mike Blumenkrantz + + * ignore tab key widget focus change if control/alt is pressed diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index f01f4ac..2bf80b9 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -152,6 +152,7 @@ Fixes: * Fix elc_player pause state to be in sync * Fix time string display to handle hours right * Fix elm_config to properly check file type. + * ignore tab key widget focus change if control/alt is pressed Removals: diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index ce8a305..5abdefa 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -1131,6 +1131,9 @@ _elm_win_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list) if ((!strcmp(ev->keyname, "Tab")) || (!strcmp(ev->keyname, "ISO_Left_Tab"))) { + if (evas_key_modifier_is_set(ev->modifiers, "Control") || + evas_key_modifier_is_set(ev->modifiers, "Alt")) + return EINA_FALSE; if (evas_key_modifier_is_set(ev->modifiers, "Shift")) elm_widget_focus_cycle(obj, ELM_FOCUS_PREVIOUS); else -- 2.7.4