Merge "Fix wrong logic in macro key handling." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cf6e3b1fd6
@@ -3272,12 +3272,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
Slog.wtf(TAG, "KEYCODE_STYLUS_BUTTON_* should be handled in"
|
||||
+ " interceptKeyBeforeQueueing");
|
||||
return key_consumed;
|
||||
case KeyEvent.KEYCODE_MACRO_1:
|
||||
case KeyEvent.KEYCODE_MACRO_2:
|
||||
case KeyEvent.KEYCODE_MACRO_3:
|
||||
case KeyEvent.KEYCODE_MACRO_4:
|
||||
Slog.wtf(TAG, "KEYCODE_MACRO_x should be handled in interceptKeyBeforeQueueing");
|
||||
return key_consumed;
|
||||
}
|
||||
|
||||
if (isValidGlobalKey(keyCode)
|
||||
@@ -4427,7 +4421,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case KeyEvent.KEYCODE_MACRO_2:
|
||||
case KeyEvent.KEYCODE_MACRO_3:
|
||||
case KeyEvent.KEYCODE_MACRO_4:
|
||||
// TODO(b/266098478): Add logic to handle KEYCODE_MACROx feature
|
||||
result &= ~ACTION_PASS_TO_USER;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user