Cancel pending meta actions when the key pressed *isn't* meta.

Bug: 17207035
Change-Id: I980107a453814e4e34e32db338620e90d3b388ee
This commit is contained in:
Michael Wright
2014-08-22 15:40:27 -07:00
parent 7653a30ea0
commit 251e35da76

View File

@@ -2176,7 +2176,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// Cancel any pending meta actions if we see any other keys being pressed between the down
// of the meta key and its corresponding up.
if (mPendingMetaAction && KeyEvent.isMetaKey(keyCode)) {
if (mPendingMetaAction && !KeyEvent.isMetaKey(keyCode)) {
mPendingMetaAction = false;
}