}
break;
+ case LISTMGR_PLAY_INFO:
+ case LISTMGR_GRID:
+ if (!strcmp(ev->keyname, KEY_BACK) ||
+ !strcmp(ev->keyname, KEY_BACK_REMOTE))
+ elm_object_focus_next(obj, ELM_FOCUS_UP);
+ break;
default:
break;
}
}
static input_handler _grid_handler = {
+ .key_down = _key_down_cb,
.mouse_move = _mouse_move_cb,
.focused = _focused_cb,
.realized = _grid_realized_cb,
content = elm_object_part_content_get(ly, PART_ITEM_CONTENT);
+ elm_object_focus_next_object_set(content, index, ELM_FOCUS_UP);
+
inputmgr_add_callback(content, LISTMGR_PLAY_INFO, &_handler, lmgr);
elm_object_signal_callback_add(content, SIG_ITEM_SELECTED,
SIG_SOURCE_EDC, _play_info_selected_cb, lmgr);
evas_object_size_hint_min_set(grid, size * data->grid_item_x,
data->grid_num_item * data->grid_item_y);
+ elm_object_focus_next_object_set(grid, btn, ELM_FOCUS_UP);
+
inputmgr_add_callback(grid, LISTMGR_GRID, &_grid_handler, lmgr);
elm_object_part_content_set(ly, PART_ITEM_TITLE, btn);
* limitations under the License.
*/
+#include <app.h>
#include <Elementary.h>
#include <app_debug.h>
#include <inputmgr.h>
if (!strcmp(ev->keyname, KEY_ENTER) ||
!strcmp(ev->keyname, KEY_ENTER_REMOTE))
elm_object_focus_next(obj, ELM_FOCUS_DOWN);
+ else if (!strcmp(ev->keyname, KEY_BACK) ||
+ !strcmp(ev->keyname, KEY_BACK_REMOTE))
+ ui_app_exit();
}
static void _mouse_move_cb(int id, void *data, Evas *e,