mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
7db6803233
commit
7b5896264c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user