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; |