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

Unified Diff: chrome/common/extensions/docs/examples/extensions/plugin_settings/options/js/inline_editable_list.js

Issue 2104103002: Convert Event#keyIdentifier (deprecated) to Event#key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch file manager test Created 4 years, 5 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/common/extensions/docs/examples/extensions/plugin_settings/options/js/inline_editable_list.js
diff --git a/chrome/common/extensions/docs/examples/extensions/plugin_settings/options/js/inline_editable_list.js b/chrome/common/extensions/docs/examples/extensions/plugin_settings/options/js/inline_editable_list.js
index 8aed93beedf423fe5d24ca8c6f317fa50979672e..c09d920790f63cff8afdb3f8ee898ea6f8afb79e 100644
--- a/chrome/common/extensions/docs/examples/extensions/plugin_settings/options/js/inline_editable_list.js
+++ b/chrome/common/extensions/docs/examples/extensions/plugin_settings/options/js/inline_editable_list.js
@@ -305,8 +305,8 @@ cr.define('options', function() {
return;
var endEdit = false;
- switch (e.keyIdentifier) {
- case 'U+001B': // Esc
+ switch (e.key) {
+ case 'Escape':
this.editCancelled_ = true;
endEdit = true;
break;

Powered by Google App Engine
This is Rietveld 408576698