power button toggles menu
This commit is contained in:
parent
e923487ff6
commit
3a976a79bf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user