aboutsummaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'recovery.c')
-rw-r--r--recovery.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/recovery.c b/recovery.c
index 9aa19ef..6e50541 100644
--- a/recovery.c
+++ b/recovery.c
@@ -441,11 +441,6 @@ get_menu_selection(char** headers, char** items, int menu_only,
int selected = initial_selection;
int chosen_item = -1;
- // Some users with dead enter keys need a way to turn on power to select.
- // Jiggering across the wrapping menu is one "secret" way to enable it.
- // We can't rely on /cache or /sdcard since they may not be available.
- int wrap_count = 0;
-
while (chosen_item < 0 && chosen_item != GO_BACK) {
int key = ui_wait_key();
int visible = ui_text_visible();
@@ -459,6 +454,9 @@ get_menu_selection(char** headers, char** items, int menu_only,
return ITEM_REBOOT;
}
}
+ else if (key == -2) {
+ return GO_BACK;
+ }
int action = ui_handle_key(key, visible);