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

Commit 017cdf10 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Map META+L to lock the device" into udc-qpr-dev

parents e77973b4 19fa8890
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()) {