Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3254)

Unified Diff: chrome/browser/resources/vr_shell/vk.js

Issue 2735693006: Connect virtual keyboard to omnibox (Closed)
Patch Set: Rebase attempt 2. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/vr_shell/vk.js
diff --git a/chrome/browser/resources/vr_shell/vk.js b/chrome/browser/resources/vr_shell/vk.js
index 8159bbf48634fb50caf678d4670469162dfad7ed..6a47eede82f05a3e58091dc617c706f6ec5358b9 100644
--- a/chrome/browser/resources/vr_shell/vk.js
+++ b/chrome/browser/resources/vr_shell/vk.js
@@ -262,7 +262,9 @@ var vrShellVK = (function() {
function vkCh(button) {
if (button.key || button.code) {
- // TODO(asimjour): Change the focus to the omnibox.
+ // This code limits use of the HTML keyboard to the omnibox.
+ document.querySelector("#omnibox-input-field").focus();
+
if (button.code != 'AltRight')
sendKey('key', button.code, button.key);
if (vkState.level == 1)
« no previous file with comments | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698