Navigation in Tab Manager 42/49442/1
authorAlbert Malewski <a.malewski@samsung.com>
Tue, 13 Oct 2015 08:04:47 +0000 (10:04 +0200)
committerAlbert Malewski <a.malewski@samsung.com>
Tue, 13 Oct 2015 08:39:33 +0000 (10:39 +0200)
[Issue]    https://bugs.tizen.org/jira/browse/TT-214
[Problem]  Focus cannot move to "New Tab/New Incognito Tab" buttons.
[Cause]    N/A
[Solution] Added focus directions:
           "Up" arrow on "Opened tabs" -> focus moves to "Close tabs"
           "Left" arrow on "Close tabs" -> focus moves to "new incognito tab"
[Verify]   Launch browser > Open Tab Manager > Move focus to
           "New Tab/New Incognito Tab"

Change-Id: Ia5aea25a36e4fa779bca541621c250e45ec60f28

services/TabUI/TabUI.cpp

index 1024bc7..401c6d8 100644 (file)
@@ -81,6 +81,15 @@ void TabUI::showUI()
     evas_object_show(m_tab_layout);
     evas_object_show(elm_layout_content_get(m_tab_layout, "action_bar"));
     evas_object_show(elm_layout_content_get(m_tab_layout, "top_bar"));
+    elm_object_focus_next_object_set(elm_layout_content_get(elm_object_part_content_get(m_tab_layout, "top_bar"), "openedtabs_click"),
+                                     elm_object_part_content_get(elm_object_part_content_get(m_tab_layout, "action_bar"), "closetabs_click"),
+                                     ELM_FOCUS_UP);
+    elm_object_focus_next_object_set(elm_object_part_content_get(elm_object_part_content_get(m_tab_layout, "action_bar"), "closetabs_click"),
+                                     elm_layout_content_get(elm_object_part_content_get(m_tab_layout, "top_bar"), "openedtabs_click"),
+                                     ELM_FOCUS_DOWN);
+    elm_object_focus_next_object_set(elm_object_part_content_get(elm_object_part_content_get(m_tab_layout, "action_bar"), "closetabs_click"),
+                                     elm_object_part_content_get(elm_object_part_content_get(m_tab_layout, "action_bar"), "newincognitotab_click"),
+                                     ELM_FOCUS_LEFT);
 }
 
 void TabUI::hideUI()