aboutsummaryrefslogtreecommitdiffstats
path: root/default_recovery_ui.c
diff options
context:
space:
mode:
authorKoushik K. Dutta <koushd@gmail.com>2010-02-08 15:05:21 -0800
committerKoushik K. Dutta <koushd@gmail.com>2010-02-10 12:10:02 -0800
commit0d4ff2fcc6162c5996cca39349662d378c7c26c3 (patch)
treee477a026b3f3366b4d3fe44044b09d5c656a5115 /default_recovery_ui.c
parent89d385c4d9a0580c9712b571eb3d3ff6b88f9b9a (diff)
downloadbootable_recovery-0d4ff2fcc6162c5996cca39349662d378c7c26c3.zip
bootable_recovery-0d4ff2fcc6162c5996cca39349662d378c7c26c3.tar.gz
bootable_recovery-0d4ff2fcc6162c5996cca39349662d378c7c26c3.tar.bz2
allow alt-l or menu to bring up the recovery menu
Diffstat (limited to 'default_recovery_ui.c')
-rw-r--r--default_recovery_ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/default_recovery_ui.c b/default_recovery_ui.c
index a531d7e..cb76b9a 100644
--- a/default_recovery_ui.c
+++ b/default_recovery_ui.c
@@ -30,7 +30,10 @@ char* MENU_ITEMS[] = { "reboot system now",
NULL };
int device_toggle_display(volatile char* key_pressed, int key_code) {
- return key_code == KEY_HOME;
+ 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;
}
int device_reboot_now(volatile char* key_pressed, int key_code) {