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

Unified Diff: ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js

Issue 1994563002: Remove the use of KeyEvent.keyIdentifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js b/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
index b46b7d15f1b54eda88c7b08ebacbee2aa82a0bee..3968879cfa210c133b580e3f7552a62dfda86619 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
@@ -190,8 +190,8 @@ DirectoryTreeNamingController.prototype.detach_ = function() {
DirectoryTreeNamingController.prototype.onKeyDown_ = function(event) {
event.stopPropagation();
- switch (util.getKeyModifiers(event) + event.keyIdentifier) {
- case 'U+001B': // Escape
+ switch (util.getKeyModifiers(event) + event.key) {
+ case 'Escape':
this.cancelRename_();
event.preventDefault();
break;

Powered by Google App Engine
This is Rietveld 408576698