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

Unified Diff: chrome/browser/resources/chromeos/user_images_grid.js

Issue 2059913002: Remove keyIdentifier usage in chrome/browser/resources/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos build Created 4 years, 6 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/chromeos/user_images_grid.js
diff --git a/chrome/browser/resources/chromeos/user_images_grid.js b/chrome/browser/resources/chromeos/user_images_grid.js
index 9f17b992debfb4672df7a7fb04fda866281a0a7a..9fbf1691205da1fa6933840e2b0088644d388e6b 100644
--- a/chrome/browser/resources/chromeos/user_images_grid.js
+++ b/chrome/browser/resources/chromeos/user_images_grid.js
@@ -99,7 +99,7 @@ cr.define('options', function() {
/** @override */
handleKeyDown: function(e) {
- if (e.keyIdentifier == 'Enter')
+ if (e.key == 'Enter')
cr.dispatchSimpleEvent(this.grid_, 'activate');
else
GridSelectionController.prototype.handleKeyDown.call(this, e);

Powered by Google App Engine
This is Rietveld 408576698