Chromium Code Reviews

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: Add keyIdentifier getter/setter if keyIdentifier is not defined Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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