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

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

Issue 2647053002: Add initial VR interactive omnibox. (Closed)
Patch Set: Created 3 years, 11 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
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 a2752aa01dc5bc659a44f4eca19f334e760126e9..e2cdcfcfe132e3aa4f8fdddb1fce83361118d092 100644
--- a/chrome/browser/resources/vr_shell/vk.js
+++ b/chrome/browser/resources/vr_shell/vk.js
@@ -216,9 +216,7 @@ function vk_level0(button) {
function vk_ch(button) {
if (button.key || button.code) {
console.log('Keyboard click: ' + performance.now());
- // Hack! Set focus back to omnibox. Oh man...
- let field = document.querySelector("#input-field");
- field.focus();;
+ document.querySelector("#omnibox-input-field").focus();
sendKey('key', button.code, button.key);
if (vk_state.level == 1)
vk_activate_level(0);

Powered by Google App Engine
This is Rietveld 408576698