Add some focus calls for switching between thumb and flow browsers.
SVN revision: 57138
This commit is contained in:
parent
03a4bb8761
commit
220c58503d
|
@ -181,6 +181,7 @@ ephoto_flow_browser_show(void)
|
|||
ephoto->prev_state = ephoto->state;
|
||||
ephoto->state = EPHOTO_STATE_FLOW;
|
||||
|
||||
elm_object_focus(efb->layout);
|
||||
if (!evas_object_key_grab(efb->box, "Escape", 0, 0, 1))
|
||||
printf("Couldn't grab Escape key\n");
|
||||
if (!evas_object_key_grab(efb->box, "Left", 0, 0, 1))
|
||||
|
@ -306,6 +307,7 @@ _ephoto_flow_back(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_
|
|||
evas_object_key_ungrab(efb->box, "BackSpace", 0, 0);
|
||||
evas_object_key_ungrab(efb->box, "space", 0, 0);
|
||||
|
||||
elm_object_unfocus(efb->layout);
|
||||
ephoto_thumb_browser_show();
|
||||
}
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@ ephoto_thumb_browser_show(void)
|
|||
ephoto->state = EPHOTO_STATE_THUMB;
|
||||
|
||||
elm_pager_content_promote(ephoto->pager, ephoto->thumb_browser);
|
||||
elm_object_focus(etb->grid);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -223,6 +224,8 @@ _ephoto_show_flow(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_
|
|||
|
||||
elm_toolbar_item_selected_set(etb->action.view_flow, EINA_FALSE);
|
||||
|
||||
elm_object_unfocus(etb->grid);
|
||||
|
||||
egi = elm_gengrid_selected_item_get(etb->grid);
|
||||
if (egi)
|
||||
ephoto->current_index = elm_gengrid_item_data_get(egi);
|
||||
|
|
Loading…
Reference in New Issue