ignore tab key focus changes in elm_win if ctrl/alt is pressed
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 17 Feb 2013 14:11:36 +0000 (14:11 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 17 Feb 2013 14:11:36 +0000 (14:11 +0000)
SVN revision: 84020

ChangeLog
NEWS
src/lib/elm_win.c

index e9b8f50ab07a55c857fd50a5b70bd794030764ee..37a200ea9fd3611360e74759cced63917abe4261 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2013-02-17  Cedric Bail
 
        * Improve support for some 64bits system.
+
+2013-02-17 Mike Blumenkrantz
+
+        * ignore tab key widget focus change if control/alt is pressed
diff --git a/NEWS b/NEWS
index 3bf585dccff74bd7c6add268290590f614f942e9..f7ffacc0cac04602e0cc6b28717765e0aa3ae094 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ Fixes:
    * Fix the scroll position is calculated by the size of pan object, not the size of scroller.
    * Fix a elm_transit crash issue when user delete all target objects in the effect end callback.
    * elm_entry_single_line_set should not change cnp_mode when PLAINTEXT mode.
+   * ignore tab key widget focus change if control/alt is pressed
 
 Elementary 1.7.5
 
index 6a3fe7ec6d3dd9530227a98ce87539cb70991d92..29a8d62728b91635c1216de7a38375182b953972 100644 (file)
@@ -992,6 +992,9 @@ _elm_win_smart_event(Evas_Object *obj,
    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