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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/search_box.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/ui/search_box.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/search_box.js b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
index dc5241d49b36390a13ca8044f3fc4676115c7582..7b8aef42860d8b4c0ebe65a0c88bf22de82de2bd 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/search_box.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
@@ -229,7 +229,7 @@ SearchBox.prototype.onBlur_ = function() {
SearchBox.prototype.onKeyDown_ = function(event) {
event = /** @type {KeyboardEvent} */ (event);
// Handle only Esc key now.
- if (event.keyIdentifier != 'U+001B' /* Esc */ || this.inputElement.value)
+ if (event.key != 'Escape' || this.inputElement.value)
return;
this.inputElement.tabIndex = -1; // Focus to default element after blur.

Powered by Google App Engine
This is Rietveld 408576698