From d5e6bc7a8c413218ec1372fd54157e9639ab67b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Goode Date: Thu, 1 Apr 2010 03:14:44 +0000 Subject: FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before they can be switched on git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25414 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 9053dcfcdb..c8234d5e97 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -757,12 +757,14 @@ static int dirbrowse() #endif case ACTION_STD_CONTEXT: + case ACTION_TREE_HOTKEY: { + bool hotkey = button == ACTION_TREE_HOTKEY; int onplay_result; int attr = 0; if(!numentries) - onplay_result = onplay(NULL, 0, curr_context); + onplay_result = onplay(NULL, 0, curr_context, hotkey); else { #ifdef HAVE_TAGCACHE if (id3db) @@ -788,7 +790,7 @@ static int dirbrowse() snprintf(buf, sizeof buf, "/%s", dircache[tc.selected_item].name); } - onplay_result = onplay(buf, attr, curr_context); + onplay_result = onplay(buf, attr, curr_context, hotkey); } switch (onplay_result) { -- cgit v1.2.3