summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-11-09 13:16:58 +0100
committerChristian Soffke <christian.soffke@gmail.com>2024-11-12 07:55:48 +0100
commit9b20f59ac676b068ccdc6c57727230fa772b3179 (patch)
treebe0e753a60b6fb3633aab3816129fb7b6e435d90
parentd6e2b5d3cf86814cbc670b8b3df08a3b75094543 (diff)
downloadrockbox-9b20f59ac6.tar.gz
rockbox-9b20f59ac6.zip
plugins: Simple Viewer: Exit when pressing Select, or (on iPods) Menu/Left
Change-Id: I63d9c90f30783115f9fad70dae1818ad90ba79dd
-rw-r--r--apps/plugins/lib/simple_viewer.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/lib/simple_viewer.c b/apps/plugins/lib/simple_viewer.c
index d5cf79d5e1..db349323c5 100644
--- a/apps/plugins/lib/simple_viewer.c
+++ b/apps/plugins/lib/simple_viewer.c
@@ -265,6 +265,11 @@ int view_text(const char *title, const char *text)
switch (button)
{
case PLA_UP:
+#if (CONFIG_KEYPAD == IPOD_1G2G_PAD) \
+ || (CONFIG_KEYPAD == IPOD_3G_PAD) \
+ || (CONFIG_KEYPAD == IPOD_4G_PAD)
+ return PLUGIN_OK;
+#endif
case PLA_UP_REPEAT:
#ifdef HAVE_SCROLLWHEEL
case PLA_SCROLL_BACK:
@@ -281,6 +286,11 @@ int view_text(const char *title, const char *text)
scroll_down(&info, 1);
break;
case PLA_LEFT:
+#if (CONFIG_KEYPAD == IPOD_1G2G_PAD) \
+ || (CONFIG_KEYPAD == IPOD_3G_PAD) \
+ || (CONFIG_KEYPAD == IPOD_4G_PAD)
+ return PLUGIN_OK;
+#endif
scroll_up(&info, info.display_lines);
break;
case PLA_RIGHT:
@@ -292,6 +302,7 @@ int view_text(const char *title, const char *text)
case PLA_RIGHT_REPEAT:
scroll_to_bottom(&info);
break;
+ case PLA_SELECT:
case PLA_EXIT:
case PLA_CANCEL:
return PLUGIN_OK;