Chromium Code Reviews

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: 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/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