Starting work on 1.15.9: keyboard cleanup in progress
This commit is contained in:
parent
271970f42a
commit
df1ec8d39a
145 changed files with 6757 additions and 629 deletions
|
|
@ -2210,15 +2210,15 @@ Video.prototype.processTouchEvent = function(event, fStart)
|
|||
*/
|
||||
if (/* xThird == 1 && */ yThird != 1) {
|
||||
if (!yThird) {
|
||||
this.kbd.keyPressSimulate(Keyboard.CHARCODE.U_ARROW, true);
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.UP, true);
|
||||
} else {
|
||||
this.kbd.keyPressSimulate(Keyboard.CHARCODE.D_ARROW, true);
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.DOWN, true);
|
||||
}
|
||||
} else if (/* yThird == 1 && */ xThird != 1) {
|
||||
if (!xThird) {
|
||||
this.kbd.keyPressSimulate(Keyboard.CHARCODE.L_ARROW, true);
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.LEFT, true);
|
||||
} else {
|
||||
this.kbd.keyPressSimulate(Keyboard.CHARCODE.R_ARROW, true);
|
||||
this.kbd.keyPressSimulate(Keyboard.KEYCODE.RIGHT, true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -5086,9 +5086,9 @@ Video.init = function()
|
|||
*
|
||||
* UPDATE: Unfortunately, Android keyboards like to compose whole words before transmitting any of the
|
||||
* intervening characters; our textarea's keyDown/keyUp event handlers DO receive intervening key events,
|
||||
* but their keyCode and charCode properties are ZERO. Virtually the only usable key event we receive is
|
||||
* the Enter key, which makes this hack useless. Android users will have to use machines that display
|
||||
* their own on-screen keyboard, or use an external keyboard.
|
||||
* but their keyCode property is ZERO. Virtually the only usable key event we receive is the Enter key,
|
||||
* which makes this hack useless. Android users will have to use machines that display their own on-screen
|
||||
* keyboard, or use an external keyboard.
|
||||
*
|
||||
* See this Chromium issue for more information: https://code.google.com/p/chromium/issues/detail?id=118639
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue