Merge "Close system dialogs as Escape fallback" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3b3bef21a6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user