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

Commit 19fa8890 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Map META+L to lock the device

Fixes: 246657706
Test: META+L -> lock and go to the lockscreen
Change-Id: Ia928468318ba26ec19e4bb7aaf19c0f5a095d616
parent a8d52203
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3046,6 +3046,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    return key_consumed;
                }
                break;
            case KeyEvent.KEYCODE_L:
                if (down && event.isMetaPressed() && repeatCount == 0) {
                    lockNow(null /* options */);
                    return key_consumed;
                }
                break;
            case KeyEvent.KEYCODE_N:
                if (down && event.isMetaPressed()) {
                    if (event.isCtrlPressed()) {