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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.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/SuggestBox.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js b/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
index 188772dbbc5974576d079f225e93812753abb8e0..21e4bf4d48bb0102b776f6534a11542a885d1855 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
@@ -396,10 +396,10 @@ WebInspector.SuggestBox.prototype = {
*/
keyPressed: function(event)
{
- switch (event.keyIdentifier) {
- case "Up":
+ switch (event.key) {
+ case "ArrowUp":
return this.upKeyPressed();
- case "Down":
+ case "ArrowDown":
return this.downKeyPressed();
case "PageUp":
return this.pageUpKeyPressed();

Powered by Google App Engine
This is Rietveld 408576698