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

Unified Diff: chrome/browser/resources/options/language_dictionary_overlay.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/options/language_dictionary_overlay.js
diff --git a/chrome/browser/resources/options/language_dictionary_overlay.js b/chrome/browser/resources/options/language_dictionary_overlay.js
index 61e351afa662938907dbde59da3fd3d44355a16d..6f7a4a2ccb8f0fbad25d18cc50e56711cdf71e45 100644
--- a/chrome/browser/resources/options/language_dictionary_overlay.js
+++ b/chrome/browser/resources/options/language_dictionary_overlay.js
@@ -63,7 +63,7 @@ cr.define('options', function() {
this.searchField_.onkeydown = function(e) {
// Don't propagate enter key events. Otherwise the default button will
// activate.
- if (e.keyIdentifier == 'Enter')
+ if (e.key == 'Enter')
e.stopPropagation();
};
« no previous file with comments | « chrome/browser/resources/options/inline_editable_list.js ('k') | chrome/browser/resources/options/language_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698