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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components_lazy/FilmStripView.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/components_lazy/FilmStripView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components_lazy/FilmStripView.js b/third_party/WebKit/Source/devtools/front_end/components_lazy/FilmStripView.js
index 64bb74f1cec042c378acb0966bcc3bf6cf4e46f7..d244f52c318957e1584e90a0acd06439733cac89 100644
--- a/third_party/WebKit/Source/devtools/front_end/components_lazy/FilmStripView.js
+++ b/third_party/WebKit/Source/devtools/front_end/components_lazy/FilmStripView.js
@@ -264,15 +264,15 @@ WebInspector.FilmStripView.Dialog.prototype = {
*/
_keyDown: function(event)
{
- switch (event.keyIdentifier) {
- case "Left":
+ switch (event.key) {
+ case "ArrowLeft":
if (WebInspector.isMac() && event.metaKey)
this._onFirstFrame();
else
this._onPrevFrame();
break;
- case "Right":
+ case "ArrowRight":
if (WebInspector.isMac() && event.metaKey)
this._onLastFrame();
else

Powered by Google App Engine
This is Rietveld 408576698