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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.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/profiler/ProfilesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js
index 55f29e5d2bbd836fa830293f38141848bd350d5e..55e6b10944e77039b8bc1e516a9f8d9b3a14dcbb 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js
@@ -505,9 +505,9 @@ WebInspector.ProfilesPanel.prototype = {
_onKeyDown: function(event)
{
var handled = false;
- if (event.keyIdentifier === "Down" && !event.altKey)
+ if (event.key === "ArrowDown" && !event.altKey)
handled = this._sidebarTree.selectNext();
- else if (event.keyIdentifier === "Up" && !event.altKey)
+ else if (event.key === "ArrowUp" && !event.altKey)
handled = this._sidebarTree.selectPrevious();
if (handled)
event.consume(true);

Powered by Google App Engine
This is Rietveld 408576698