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

Unified Diff: ui/file_manager/file_manager/foreground/js/import_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/import_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/import_controller.js b/ui/file_manager/file_manager/foreground/js/import_controller.js
index 7b5bc991ae301f7d57b819d73988c53dc5250804..343b1d2f33cd274ce04032488a00eb1e19c7e83d 100644
--- a/ui/file_manager/file_manager/foreground/js/import_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/import_controller.js
@@ -605,8 +605,8 @@ importer.RuntimeCommandWidget = function() {
* @private
*/
importer.RuntimeCommandWidget.prototype.onKeyDown_ = function(event) {
- switch (util.getKeyModifiers(event) + event.keyIdentifier) {
- case 'U+001B':
+ switch (util.getKeyModifiers(event) + event.key) {
+ case 'Escape':
this.setDetailsVisible(false);
}
};

Powered by Google App Engine
This is Rietveld 408576698