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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js

Issue 2033403005: Eradicate keyIndentifier from devtools/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call KeyCodeToKeyIdentifier for unhandle key events 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: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
index d4f692f2b262a640579e2213d4e71060a939d31c..5d71cc9ccf86ff1281cea1ec9a70908a2d94eba6 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
@@ -417,13 +417,13 @@ WebInspector.TextFilterUI.prototype = {
_onInputKeyDown: function(event)
{
var handled = false;
- if (event.keyIdentifier === "U+0008") { // Backspace
+ if (event.key === "Backspace") {
this._suppressSuggestion = true;
} else if (this._suggestBox.visible()) {
- if (event.keyIdentifier === "U+001B") { // Esc
+ if (event.key === "Escape") {
this._cancelSuggestion();
handled = true;
- } else if (event.keyIdentifier === "U+0009") { // Tab
+ } else if (event.key === "Tab") {
this._suggestBox.acceptSuggestion();
this._valueChanged(true);
handled = true;

Powered by Google App Engine
This is Rietveld 408576698