Merge "Only Dispatch Stylus Key Events to System UI on Key Down"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8640e1da98
@@ -4316,7 +4316,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_SECONDARY:
|
||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_TERTIARY:
|
||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_TAIL: {
|
||||
if (!mStylusButtonsDisabled) {
|
||||
if (down && !mStylusButtonsDisabled) {
|
||||
sendSystemKeyToStatusBarAsync(keyCode);
|
||||
}
|
||||
result &= ~ACTION_PASS_TO_USER;
|
||||
|
||||
Reference in New Issue
Block a user