using tab to switch between tabs
authorViktor Kojouharov <vkojouharov@gmail.com>
Sun, 7 Jun 2009 08:54:04 +0000 (08:54 +0000)
committerViktor Kojouharov <vkojouharov@gmail.com>
Sun, 7 Jun 2009 08:54:04 +0000 (08:54 +0000)
SVN revision: 40939

src/modules/fileman/e_fwin.c

index 022231e7a6392437bf03f1df0b520a06c556bd87..b5fe1675feb15f26798b11f6b9f17e8d6fe6c036 100644 (file)
@@ -1367,6 +1367,27 @@ _e_fwin_cb_key_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
             _e_fwin_page_new(fwin);
             return;
          }
+       if (!strcmp(ev->key, "Tab"))
+         {
+            Eina_List *l;
+            if (evas_key_modifier_is_set(ev->modifiers, "Shift"))
+              {
+                 l = eina_list_nth_list(fwin->pages, fwin->page_index);
+                 if (l->prev)
+                   e_widget_toolbar_item_select(fwin->tb_obj, fwin->page_index - 1);
+                 else
+                   e_widget_toolbar_item_select(fwin->tb_obj, eina_list_count(fwin->pages) - 1);
+              }
+            else
+              {
+                 l = eina_list_nth_list(fwin->pages, fwin->page_index);
+                 if (l->next)
+                   e_widget_toolbar_item_select(fwin->tb_obj, fwin->page_index + 1);
+                 else
+                   e_widget_toolbar_item_select(fwin->tb_obj, 0);
+              }
+            return;
+         }
      }
 }