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

Unified Diff: chrome/browser/resources/options/chromeos/accounts_user_name_edit.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/chromeos/accounts_user_name_edit.js
diff --git a/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js b/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js
index 22a3b37b0e908b57aa1b48e7d476592d0663d44f..6766e969ad5ed792c4761808f100667491a2214d 100644
--- a/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js
+++ b/chrome/browser/resources/options/chromeos/accounts_user_name_edit.js
@@ -108,7 +108,7 @@ cr.define('options.accounts', function() {
* @param {Event} e The keydown event object.
*/
handleKeyDown_: function(e) {
- if (e.keyIdentifier == 'Enter') {
+ if (e.key == 'Enter') {
var user = this.parse(this.value);
if (user) {
var event = new Event('add');
« no previous file with comments | « chrome/browser/resources/ntp4/tile_page.js ('k') | chrome/browser/resources/options/chromeos/network_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698