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

Unified Diff: chrome/browser/resources/chromeos/keyboard/keyboard_utils.js

Issue 2751523010: cros: Fix hotrod remote arrow keys not working on gaia for CFM oobe (Closed)
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/keyboard/keyboard_utils.js
diff --git a/chrome/browser/resources/chromeos/keyboard/keyboard_utils.js b/chrome/browser/resources/chromeos/keyboard/keyboard_utils.js
index 3b289606ce5c85221034d5113c96489d27268023..bea741ccc03394ebeaf8121ef48e477103e0ee47 100644
--- a/chrome/browser/resources/chromeos/keyboard/keyboard_utils.js
+++ b/chrome/browser/resources/chromeos/keyboard/keyboard_utils.js
@@ -52,7 +52,7 @@ keyboard.onAdvanceFocus = function(reverse) {
keyboard.onKeyIgnore_ = function(event) {
event = /** @type {!KeyboardEvent} */(event);
- if (hasKeyModifiers(event))
+ if (event.ctrlKey || event.shiftKey || event.altKey || event.metaKey)
return;
if (event.key == 'ArrowLeft' ||
@@ -72,7 +72,7 @@ keyboard.onKeyIgnore_ = function(event) {
keyboard.onKeyDown_ = function(event) {
event = /** @type {!KeyboardEvent} */(event);
- if (hasKeyModifiers(event))
+ if (event.ctrlKey || event.shiftKey || event.altKey || event.metaKey)
return;
// This file also gets embedded inside of the CfM/hotrod enrollment webview.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698