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

Unified Diff: ui/webui/resources/js/cr/ui/focus_row.js

Issue 2586113002: MD Settings: ignore modified key events in the profile avatar grid (Closed)
Patch Set: closure Created 4 years 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: ui/webui/resources/js/cr/ui/focus_row.js
diff --git a/ui/webui/resources/js/cr/ui/focus_row.js b/ui/webui/resources/js/cr/ui/focus_row.js
index 432c8a6dbebb656446c25e5ca19f772085f4c60a..415c1ea9956f73fdf6a4feabf9e651fe48bde305 100644
--- a/ui/webui/resources/js/cr/ui/focus_row.js
+++ b/ui/webui/resources/js/cr/ui/focus_row.js
@@ -254,7 +254,7 @@ cr.define('cr.ui', function() {
},
/**
- * @param {Event} e The keydown event.
+ * @param {!Event} e The keydown event.
* @private
*/
onKeydown_: function(e) {
@@ -266,7 +266,7 @@ cr.define('cr.ui', function() {
if (this.delegate && this.delegate.onKeydown(this, e))
return;
- if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)
+ if (hasKeyModifiers(e))
return;
var index = -1;

Powered by Google App Engine
This is Rietveld 408576698