Merge "Close system dialogs as Escape fallback" into udc-dev

This commit is contained in:
Josep del Río
2023-04-20 12:33:50 +00:00
committed by Android (Google) Code Review

View File

@@ -3484,6 +3484,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
interceptScreenshotChord(SCREENSHOT_KEY_OTHER, 0 /*pressDelay*/);
}
return true;
case KeyEvent.KEYCODE_ESCAPE:
if (down && repeatCount == 0) {
mContext.closeSystemDialogs();
}
return true;
}
return false;