Web Inspector: Change Open Resource and Go To function shortcuts in scripts panel.
authorvsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Jan 2012 13:02:57 +0000 (13:02 +0000)
committervsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Jan 2012 13:02:57 +0000 (13:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=77321

Reviewed by Pavel Feldman.

* inspector/front-end/FilteredItemSelectionDialog.js:
(WebInspector.JavaScriptOutlineDialog.createShortcut):
(WebInspector.OpenResourceDialog.createShortcut):
* inspector/front-end/ScriptsPanel.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106236 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/FilteredItemSelectionDialog.js
Source/WebCore/inspector/front-end/ScriptsPanel.js

index 7a2f711..1e57e1b 100644 (file)
@@ -1,3 +1,15 @@
+2012-01-30  Vsevolod Vlasov  <vsevik@chromium.org>
+
+        Web Inspector: Change Open Resource and Go To function shortcuts in scripts panel.
+        https://bugs.webkit.org/show_bug.cgi?id=77321
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/FilteredItemSelectionDialog.js:
+        (WebInspector.JavaScriptOutlineDialog.createShortcut):
+        (WebInspector.OpenResourceDialog.createShortcut):
+        * inspector/front-end/ScriptsPanel.js:
+
 2012-01-30  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: hide function popover in heap snapshot view before navigating to the function definition
index 83c0364..f00e15c 100644 (file)
@@ -515,7 +515,7 @@ WebInspector.JavaScriptOutlineDialog._show = function(panel, sourceView)
 
 WebInspector.JavaScriptOutlineDialog.createShortcut = function()
 {
-    return WebInspector.KeyboardShortcut.makeDescriptor("o", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta);
+    return WebInspector.KeyboardShortcut.makeDescriptor("o", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift);
 }
 
 WebInspector.JavaScriptOutlineDialog.prototype = {
@@ -636,7 +636,7 @@ WebInspector.OpenResourceDialog._show = function(panel, presentationModel, relat
 
 WebInspector.OpenResourceDialog.createShortcut = function()
 {
-    return WebInspector.KeyboardShortcut.makeDescriptor("t", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift);
+    return WebInspector.KeyboardShortcut.makeDescriptor("o", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta);
 }
 
 WebInspector.OpenResourceDialog.prototype = {
index a429f56..fe0fda9 100644 (file)
@@ -131,12 +131,12 @@ WebInspector.ScriptsPanel = function(presentationModel)
     helpSection.addKey(evaluateInConsoleShortcut.name, WebInspector.UIString("Evaluate selection in console"));
     this.registerShortcut(evaluateInConsoleShortcut.key, this._evaluateSelectionInConsole.bind(this));
 
-    var scriptOutlineShortcut = WebInspector.JavaScriptOutlineDialog.createShortcut();
-    helpSection.addKey(scriptOutlineShortcut.name, WebInspector.UIString("Go to Function"));
-
     var openResourceShortcut = WebInspector.OpenResourceDialog.createShortcut();
     helpSection.addKey(openResourceShortcut.name, WebInspector.UIString("Open Script"));
 
+    var scriptOutlineShortcut = WebInspector.JavaScriptOutlineDialog.createShortcut();
+    helpSection.addKey(scriptOutlineShortcut.name, WebInspector.UIString("Go to Function"));
+
     var panelEnablerHeading = WebInspector.UIString("You need to enable debugging before you can use the Scripts panel.");
     var panelEnablerDisclaimer = WebInspector.UIString("Enabling debugging will make scripts run slower.");
     var panelEnablerButton = WebInspector.UIString("Enable Debugging");