From eed41ff985ba92181a00e6a060dc460828feb7dc Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 23 Oct 2007 14:33:16 +0000 Subject: mrobe changes: stop it thinking the battery is always flat and shutting down add keymap for time/date screen pressing a list item will highlight it before accepting it (looks better than it just entering the item without the selection changing first) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15280 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'apps/gui') diff --git a/apps/gui/list.c b/apps/gui/list.c index e7de12c4a0..6f61a61992 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -918,6 +918,8 @@ unsigned gui_synclist_do_touchpad(struct gui_synclist * lists) short x,y; unsigned button = action_get_touchpad_press(&x, &y); int line; + if (button == BUTTON_NONE) + return ACTION_NONE; if (xdisplay->char_height; + line = y / gui_list->display->char_height; + if (line != gui_list->selected_item - gui_list->start_item) + gui_synclist_select_item(lists, gui_list->start_item+line); + return ACTION_REDRAW; + } /* title or statusbar is cancel */ if (global_settings.statusbar) { -- cgit v1.2.3