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

Commit 5b55ab52 authored by Josep del Río's avatar Josep del Río Committed by Android (Google) Code Review
Browse files

Merge "Only mark unhandled events as handled when an action was made" into main

parents b785b9d5 820f029e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4057,15 +4057,17 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            case KeyEvent.KEYCODE_SYSRQ:
                if (down && repeatCount == 0) {
                    interceptScreenshotChord(SCREENSHOT_KEY_OTHER, 0 /*pressDelay*/);
                }
                    return true;
                }
                break;
            case KeyEvent.KEYCODE_ESCAPE:
                if (down
                        && KeyEvent.metaStateHasNoModifiers(metaState)
                        && repeatCount == 0) {
                    mContext.closeSystemDialogs();
                }
                    return true;
                }
                break;
            case KeyEvent.KEYCODE_STEM_PRIMARY:
                handleUnhandledSystemKey(event);
                sendSystemKeyToStatusBarAsync(event);