Bug 758427 - Ignore KeyEvents with keyCodes greater than getMaxKeyCode(), such as Gingerbread Galaxy Note's bogus stylus events. r=blassey
This commit is contained in:
@@ -876,6 +876,9 @@ public class GeckoInputConnection
|
||||
+ isPreIme + ")");
|
||||
}
|
||||
|
||||
if (keyCode > KeyEvent.getMaxKeyCode())
|
||||
return false;
|
||||
|
||||
clampSelection();
|
||||
|
||||
switch (keyCode) {
|
||||
@@ -935,6 +938,9 @@ public class GeckoInputConnection
|
||||
+ isPreIme + ")");
|
||||
}
|
||||
|
||||
if (keyCode > KeyEvent.getMaxKeyCode())
|
||||
return false;
|
||||
|
||||
switch (keyCode) {
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
case KeyEvent.KEYCODE_SEARCH:
|
||||
|
||||
Reference in New Issue
Block a user