summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2010-04-01 03:14:44 +0000
committerJeffrey Goode <jeffg7@gmail.com>2010-04-01 03:14:44 +0000
commitd5e6bc7a8c413218ec1372fd54157e9639ab67b4 (patch)
tree2be93c700ef9c5e8f85cc7dbbfab7f9f842c92f0 /apps/tree.c
parent39e78993f317349dacfc4e8d1abb703117636696 (diff)
downloadrockbox-d5e6bc7a8c413218ec1372fd54157e9639ab67b4.tar.gz
rockbox-d5e6bc7a8c413218ec1372fd54157e9639ab67b4.zip
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
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c6
1 files changed, 4 insertions, 2 deletions
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()
757#endif 757#endif
758 758
759 case ACTION_STD_CONTEXT: 759 case ACTION_STD_CONTEXT:
760 case ACTION_TREE_HOTKEY:
760 { 761 {
762 bool hotkey = button == ACTION_TREE_HOTKEY;
761 int onplay_result; 763 int onplay_result;
762 int attr = 0; 764 int attr = 0;
763 765
764 if(!numentries) 766 if(!numentries)
765 onplay_result = onplay(NULL, 0, curr_context); 767 onplay_result = onplay(NULL, 0, curr_context, hotkey);
766 else { 768 else {
767#ifdef HAVE_TAGCACHE 769#ifdef HAVE_TAGCACHE
768 if (id3db) 770 if (id3db)
@@ -788,7 +790,7 @@ static int dirbrowse()
788 snprintf(buf, sizeof buf, "/%s", 790 snprintf(buf, sizeof buf, "/%s",
789 dircache[tc.selected_item].name); 791 dircache[tc.selected_item].name);
790 } 792 }
791 onplay_result = onplay(buf, attr, curr_context); 793 onplay_result = onplay(buf, attr, curr_context, hotkey);
792 } 794 }
793 switch (onplay_result) 795 switch (onplay_result)
794 { 796 {