From 3a976a79bfa516644228bcd5ee447cab96deafb6 Mon Sep 17 00:00:00 2001 From: "Koushik K. Dutta" Date: Sat, 13 Feb 2010 15:33:49 -0800 Subject: [PATCH] power button toggles menu --- default_recovery_ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_recovery_ui.c b/default_recovery_ui.c index 3514477..991f376 100644 --- a/default_recovery_ui.c +++ b/default_recovery_ui.c @@ -36,7 +36,7 @@ int device_toggle_display(volatile char* key_pressed, int key_code) { int alt = key_pressed[KEY_LEFTALT] || key_pressed[KEY_RIGHTALT]; if (alt && key_code == KEY_L) return 1; - return key_code == KEY_HOME || key_code == KEY_MENU; + return key_code == KEY_HOME || key_code == KEY_MENU || key_code == KEY_POWER || key_code == KEY_END; } int device_reboot_now(volatile char* key_pressed, int key_code) {