commit | 271dd60719b3dd9d16e4fb0eede2c9fd2ada0e65 | [log] [tgz] |
---|---|---|
author | Gauthier Ambard <gambard@chromium.org> | Tue Apr 16 08:10:54 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 16 08:10:54 2019 |
tree | 5ff9c4bda55177c446bd103717d0f107bbd3d1c4 | |
parent | 16dfb53c1f2311aaeb7866edcb0fc15827226f84 [diff] |
[iOS] Focus the WKWebView on page load When BVC is checking if it should register the keyboard commands, if it doesn't find any first responder it is setting the WebView as first responder. This allows the WebView to respond to the keyboard commands, for example when using space to scroll the page. This CL moves this check to the page load because we only need it once to make sure the WebView gets it. TEST=The support of the external keyboard could be affected, for the WebView shortcuts and for the Chrome shortcuts too. Bug: 949118 Change-Id: Ib4ddacbbf665c5d069638bdd20963c48c042ab38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1564072 Commit-Queue: Gauthier Ambard <gambard@chromium.org> Reviewed-by: Mike Dougherty <michaeldo@chromium.org> Reviewed-by: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#651185}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .