DescriptionFocus plugin on gesturetapdown.
We focus the plugin on mousedown/touchstart, so similarly we should
focus it on gesturetapdown.
This fixes IME input on plugins, if a plugin gets gesturetapdown
without any mousedown/touchstart, the plugin will be focused correctly
and input fed to the plugin would work properly.
This could happen if the plugin doesn't have any touch handlers, then
tapping sends gesture event(s) to plugin, without any touchstart.
BUG=383484
Test=Using chrome app webview, which is a plugin.
Enable virutal keyboard in chrome://flags if it's not enabled.
In chromebook pixel: load the sample
browser app
https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/browser
Navigate to a simple page that has <input> element, e.g.
http://jsbin.com/togif/1/
Now without generating any mouse/touchpad inside the content area, tap on the screen on the input box in the jsbin page.
Notice virtual keyboard opening and it is possible to type stuffs into the input box.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176152
Patch Set 1 #Patch Set 2 : Remove debug code. #Patch Set 3 : use gesturetapdown instead #Messages
Total messages: 9 (0 generated)
|