Title: [145499] trunk/Source/WebCore
Revision
145499
Author
vse...@chromium.org
Date
2013-03-12 01:43:05 -0700 (Tue, 12 Mar 2013)

Log Message

Web Inspector: Broken shortcuts in Snippets SourceFrame
https://bugs.webkit.org/show_bug.cgi?id=112038

Reviewed by Pavel Feldman.

* inspector/front-end/SnippetJavaScriptSourceFrame.js:
(WebInspector.SnippetJavaScriptSourceFrame):
(WebInspector.SnippetJavaScriptSourceFrame.prototype._onKeyDown):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (145498 => 145499)


--- trunk/Source/WebCore/ChangeLog	2013-03-12 08:25:21 UTC (rev 145498)
+++ trunk/Source/WebCore/ChangeLog	2013-03-12 08:43:05 UTC (rev 145499)
@@ -1,3 +1,14 @@
+2013-03-12  Vsevolod Vlasov  <vse...@chromium.org>
+
+        Web Inspector: Broken shortcuts in Snippets SourceFrame
+        https://bugs.webkit.org/show_bug.cgi?id=112038
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/SnippetJavaScriptSourceFrame.js:
+        (WebInspector.SnippetJavaScriptSourceFrame):
+        (WebInspector.SnippetJavaScriptSourceFrame.prototype._onKeyDown):
+
 2013-03-12  Eugene Klyuchnikov  <eus...@chromium.org>
 
         Web Inspector: [Timeline] File selector control becomes visible on "tab" navigation.

Modified: trunk/Source/WebCore/inspector/front-end/SnippetJavaScriptSourceFrame.js (145498 => 145499)


--- trunk/Source/WebCore/inspector/front-end/SnippetJavaScriptSourceFrame.js	2013-03-12 08:25:21 UTC (rev 145498)
+++ trunk/Source/WebCore/inspector/front-end/SnippetJavaScriptSourceFrame.js	2013-03-12 08:43:05 UTC (rev 145499)
@@ -42,9 +42,9 @@
     this._runButton = new WebInspector.StatusBarButton(WebInspector.UIString("Run"), "evaluate-snippet-status-bar-item");
     this._runButton.addEventListener("click", this._runButtonClicked, this);
     this.textEditor.element.addEventListener("keydown", this._onKeyDown.bind(this), true);
-    this._shortcuts = {};
+    this._snippetsShortcuts = {};
     var runSnippetShortcutDescriptor = WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortcut.Keys.Enter, WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta)
-    this._shortcuts[runSnippetShortcutDescriptor.key] = this._runSnippet.bind(this);
+    this._snippetsShortcuts[runSnippetShortcutDescriptor.key] = this._runSnippet.bind(this);
 }
 
 WebInspector.SnippetJavaScriptSourceFrame.prototype = {
@@ -72,7 +72,7 @@
     _onKeyDown: function(event)
     {
         var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(event);
-        var handler = this._shortcuts[shortcutKey];
+        var handler = this._snippetsShortcuts[shortcutKey];
         if (handler) {
             handler(event);
             event.handled = true;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to