Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d4ff2fc authored by Koushik K. Dutta's avatar Koushik K. Dutta
Browse files

allow alt-l or menu to bring up the recovery menu

parent 89d385c4
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -30,7 +30,10 @@ char* MENU_ITEMS[] = { "reboot system now",
                       NULL };
                       NULL };


int device_toggle_display(volatile char* key_pressed, int key_code) {
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) {
int device_reboot_now(volatile char* key_pressed, int key_code) {