Title: [207850] trunk/Source/WebInspectorUI
Revision
207850
Author
[email protected]
Date
2016-10-25 15:27:06 -0700 (Tue, 25 Oct 2016)

Log Message

Web Inspector: Cmd-+ doesn't "zoom in" to increase text size in the Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=163961
<rdar://problem/28895308>

Patch by Joseph Pecoraro <[email protected]> on 2016-10-25
Reviewed by Brian Burg.

* UserInterface/Base/Main.js:
(WebInspector.contentLoaded):
Add a duplicate set of keyboard shortcuts for the Shift variants.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (207849 => 207850)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-10-25 22:19:37 UTC (rev 207849)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-10-25 22:27:06 UTC (rev 207850)
@@ -1,5 +1,17 @@
 2016-10-25  Joseph Pecoraro  <[email protected]>
 
+        Web Inspector: Cmd-+ doesn't "zoom in" to increase text size in the Web Inspector
+        https://bugs.webkit.org/show_bug.cgi?id=163961
+        <rdar://problem/28895308>
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Base/Main.js:
+        (WebInspector.contentLoaded):
+        Add a duplicate set of keyboard shortcuts for the Shift variants.
+
+2016-10-25  Joseph Pecoraro  <[email protected]>
+
         Web Inspector: Remove dead code in FrameTreeElement
         https://bugs.webkit.org/show_bug.cgi?id=163914
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Main.js (207849 => 207850)


--- trunk/Source/WebInspectorUI/UserInterface/Base/Main.js	2016-10-25 22:19:37 UTC (rev 207849)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Main.js	2016-10-25 22:27:06 UTC (rev 207850)
@@ -269,8 +269,12 @@
     this.navigationSidebarKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl | WebInspector.KeyboardShortcut.Modifier.Shift, "0", this.toggleNavigationSidebar.bind(this));
     this.detailsSidebarKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl | WebInspector.KeyboardShortcut.Modifier.Option, "0", this.toggleDetailsSidebar.bind(this));
 
-    this._increaseZoomKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl, WebInspector.KeyboardShortcut.Key.Plus, this._increaseZoom.bind(this));
-    this._decreaseZoomKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl, WebInspector.KeyboardShortcut.Key.Minus, this._decreaseZoom.bind(this));
+    let boundIncreaseZoom = this._increaseZoom.bind(this);
+    let boundDecreaseZoom = this._decreaseZoom.bind(this);
+    this._increaseZoomKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl, WebInspector.KeyboardShortcut.Key.Plus, boundIncreaseZoom);
+    this._decreaseZoomKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl, WebInspector.KeyboardShortcut.Key.Minus, boundDecreaseZoom);
+    this._increaseZoomKeyboardShortcut2 = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl | WebInspector.KeyboardShortcut.Modifier.Shift, WebInspector.KeyboardShortcut.Key.Plus, boundIncreaseZoom);
+    this._decreaseZoomKeyboardShortcut2 = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl | WebInspector.KeyboardShortcut.Modifier.Shift, WebInspector.KeyboardShortcut.Key.Minus, boundDecreaseZoom);
     this._resetZoomKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl, "0", this._resetZoom.bind(this));
 
     this._showTabAtIndexKeyboardShortcuts = [1, 2, 3, 4, 5, 6, 7, 8, 9].map((i) => new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.CommandOrControl | WebInspector.KeyboardShortcut.Modifier.Option, `${i}`, this._showTabAtIndex.bind(this, i)));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to