WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151237
Web Inspector: Add a keyboard shortcut to restore the default zoom level
https://bugs.webkit.org/show_bug.cgi?id=151237
Summary
Web Inspector: Add a keyboard shortcut to restore the default zoom level
Nikita Vasilyev
Reported
2015-11-12 17:11:27 PST
Command +/- in Safari and WebKit Inspector increases and decreases the zoom level respectively. Command 0 in Safari resets the zoom level. Command 0 in Web Inspector toggles the left sidebar.
Attachments
Proposed Fix
(2.54 KB, patch)
2015-11-23 14:07 PST
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-11-12 17:12:00 PST
<
rdar://problem/23527493
>
Blaze Burg
Comment 2
2015-11-22 14:28:10 PST
Cmd-0 is bound to show/hide main navigator in Xcode, which is how it got into Inspector. However, I think we should be consistent with Safari and other browsers and use Cmd-0 to reset the zoom level. Safari uses Cmd-Shift-L to toggle the left sidebar, I'm fine with that. Would probably want Cmd-Shift-R for the right sidebar, then.
Nikita Vasilyev
Comment 3
2015-11-23 13:39:22 PST
(In reply to
comment #2
)
> Cmd-0 is bound to show/hide main navigator in Xcode, which is how it got > into Inspector. However, I think we should be consistent with Safari and > other browsers and use Cmd-0 to reset the zoom level. Safari uses > Cmd-Shift-L to toggle the left sidebar, I'm fine with that. Would probably > want Cmd-Shift-R for the right sidebar, then.
Cmd-Shift-R already reloads ignoring cache in Web Inspector and Chrome.
https://www.webkit.org/blog-files/web-inspector-keyboard-shortcuts/tooltips.gif
Blaze Burg
Comment 4
2015-11-23 14:07:37 PST
Created
attachment 266099
[details]
Proposed Fix
Blaze Burg
Comment 5
2015-11-23 15:40:26 PST
(In reply to
comment #3
)
> (In reply to
comment #2
) > > Cmd-0 is bound to show/hide main navigator in Xcode, which is how it got > > into Inspector. However, I think we should be consistent with Safari and > > other browsers and use Cmd-0 to reset the zoom level. Safari uses > > Cmd-Shift-L to toggle the left sidebar, I'm fine with that. Would probably > > want Cmd-Shift-R for the right sidebar, then. > > Cmd-Shift-R already reloads ignoring cache in Web Inspector and Chrome. >
https://www.webkit.org/blog-files/web-inspector-keyboard-shortcuts/tooltips
. > gif
I meant Cmd-Option-{R,L}, sorry.
WebKit Commit Bot
Comment 6
2015-11-23 18:53:36 PST
Comment on
attachment 266099
[details]
Proposed Fix Clearing flags on attachment: 266099 Committed
r192757
: <
http://trac.webkit.org/changeset/192757
>
WebKit Commit Bot
Comment 7
2015-11-23 18:53:39 PST
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 8
2015-12-01 11:52:25 PST
Comment on
attachment 266099
[details]
Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=266099&action=review
> Source/WebInspectorUI/UserInterface/Base/Main.js:1851 > + event.preventDefault();
Is this needed? I think KeyboardShortcut implicitly prevents default by default.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug