-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagemacro keyboard shortcuts #4690
Conversation
511723f
to
bd3c660
Compare
@@ -107,4 +107,7 @@ <h2 id="Keyboard_shortcuts">Keyboard shortcuts</h2> | |||
|
|||
<h3 id="Source_editor_shortcuts">Source editor shortcuts</h3> | |||
|
|||
<p>{{ Page ("en-US/docs/tools/Keyboard_shortcuts", "source-editor") }}</p> | |||
|
|||
<p>See <a href="/en-US/docs/Tools/Keyboard_shortcuts#source_editor">All keyboard shortcuts > Source editor</a> for the default source editor shortcuts.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisdavidmills Here I couldn't copy the key mapping in because even though this is the ONLY place it was transcluded, the source editor can in theory apply to different types of source. So I chose to link back.
<li>click the wrench icon (<img alt="" src="wrench-icon.png">), which is in the main toolbar or under the Hamburger menu (<img alt="" src="hamburger.png">), then select "Toggle Tools"</li> | ||
<li>activate any tool hosted in the Toolbox (for example, the JavaScript Debugger or the Page Inspector)</li> | ||
<li>press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> on Windows and Linux, or <kbd>Cmd</kbd> + <kbd>Opt</kbd> + <kbd>I</kbd> on OS X. See also <a href="/en-US/docs/Tools/Keyboard_shortcuts">keyboard shortcuts</a>.</li> | ||
<li>Select "Toggle Tools" from the Web Developer menu (under "Tools" on OS X and Linux, or "Firefox" on Windows)</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisdavidmills This is the beginning of page https://developer.mozilla.org/en-US/docs/Tools/Tools_Toolbox
I think it is a bit incorrect. I was referring to a wrench that no longer exists. Can you confirm that nowdays the ways to open the toolbar are:
- Keyboard keys
- Right click on any element and click inspect element
- On any platform (right?), use hamburger and do Web Developer - then do Toggle Tools or select specific tool.
There aren't any other ways right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to list the three most common different ways, which you've basically got correct above, except that the hamburger menu option now seems to be Hamburger menu > More tools > Web developer tools.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -6,9 +6,7 @@ | |||
- Tools | |||
- Web Development:Tools | |||
--- | |||
<div>{{ToolsSidebar}}</div><div class="geckoVersionNote"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, FF31 irrelevant now.
<p>To select these, visit <code>about:config</code>, select the setting <code>devtools.editor.keymap</code>, and assign "vim" or "emacs", or "sublime" to that setting. If you do this, the selected bindings will be used for all the developer tools that use the source editor. You need to reopen the editor for the change to take effect.</p> | ||
|
||
<p>From Firefox 33 onwards, the key binding preference is exposed in the <a href="/en-US/docs/Tools/Settings#editor_preferences">Editor Preferences</a> section of the developer tools settings, and you can set it there instead of <code>about:config</code>.</p> | ||
<div class="notecard note"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisdavidmills I couldn't remove this "Source Editor" section to another page because I don't think there is one. At the moment this is only linked by the Style editor section - is there another place you can edit things? I.e. is the specific or generic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really not sure
</tr> | ||
</tbody> | ||
</table> | ||
<p>See <a href="/en-US/docs/Tools/Eyedropper#keyboard_shortcuts">Eyedropper > Keyboard Shortcuts</a>.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisdavidmills Section above is about a tool called "Scratchpad". I can't find any docs on that so I can't move this. Any ideas on what it is for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is gone; see https://developer.mozilla.org/en-US/docs/Tools/Deprecated_tools#scratchpad for details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much to change here, from the outset.
I think this way of doing it is ok, although it does make me wonder if it would be better to just have a single page with all shortcuts listed on it, and then link the landing pages for each tool to their specific section on that page for the tool-specific shortcuts?
Then someone who wants all the shortcuts in one place can just visit that page anyway?
Thoughts? I've not got a particularly strong opinion about this.
<li>click the wrench icon (<img alt="" src="wrench-icon.png">), which is in the main toolbar or under the Hamburger menu (<img alt="" src="hamburger.png">), then select "Toggle Tools"</li> | ||
<li>activate any tool hosted in the Toolbox (for example, the JavaScript Debugger or the Page Inspector)</li> | ||
<li>press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> on Windows and Linux, or <kbd>Cmd</kbd> + <kbd>Opt</kbd> + <kbd>I</kbd> on OS X. See also <a href="/en-US/docs/Tools/Keyboard_shortcuts">keyboard shortcuts</a>.</li> | ||
<li>Select "Toggle Tools" from the Web Developer menu (under "Tools" on OS X and Linux, or "Firefox" on Windows)</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to list the three most common different ways, which you've basically got correct above, except that the hamburger menu option now seems to be Hamburger menu > More tools > Web developer tools.
Thanks @chrisdavidmills. That was my concern, as in the description:
I think I will revert this. I'll push back to draft and fix up on Friday. |
b1a7d11
to
3d78916
Compare
3d78916
to
3acbecf
Compare
<li><a href="/en-US/docs/Tools/Eyedropper">Grab a color from the page</a></li> | ||
<li>Take a screenshot of the entire page: take a screenshot of the complete web page and saves it in your Downloads directory</li> | ||
<li><a href="/en-US/docs/Tools/Rulers">Toggle rulers for the page</a></li> | ||
<li>Measure a portion of the page: measure a part of the website by selecting areas within the page</li> | ||
<li><a href="/en-US/docs/Tools/3D_View">3D view</a> (Removed in Firefox 47)</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisdavidmills Should I just delete this link - Firefox 47 was 2016? Note that the document could still exist, but you'd find it by search if you were on an old build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's get rid of it. I'll do that now.
@peterbe Just FYI, this popped up - but the URL is not new. |
@chrisdavidmills Ready for your re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @hamishwillee ; I think this is now ready to merge.
<li><a href="/en-US/docs/Tools/Eyedropper">Grab a color from the page</a></li> | ||
<li>Take a screenshot of the entire page: take a screenshot of the complete web page and saves it in your Downloads directory</li> | ||
<li><a href="/en-US/docs/Tools/Rulers">Toggle rulers for the page</a></li> | ||
<li>Measure a portion of the page: measure a part of the website by selecting areas within the page</li> | ||
<li><a href="/en-US/docs/Tools/3D_View">3D view</a> (Removed in Firefox 47)</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's get rid of it. I'll do that now.
It gets confused because of this diff portion: -<p><a name="mac-function-key-note">1. By default, on some Macs, the function key is remapped to use a special feature: for example, to change the screen brightness or the volume. See this </a><a href="https://support.apple.com/kb/HT3399">guide to using these keys as standard function keys</a>. To use a remapped key as a standard function key, hold the Function key down as well (so to open the Profiler, use <kbd>Shift</kbd> + <kbd>Function</kbd> + <kbd>F5</kbd>).</p>
+<p><a id="mac-function-key-note">1.</a> By default, on some Macs, the function key is remapped to use a special feature: for example, to change the screen brightness or the volume. See this <a href="https://support.apple.com/kb/HT3399">guide to using these keys as standard function keys</a>. To use a remapped key as a standard function key, hold the Function key down as well (so to open the Profiler, use <kbd>Shift</kbd> + <kbd>Function</kbd> + <kbd>F5</kbd>).</p> I think the simple solution might be to change the messaging from: -Note! This is a new URL 👀
+Note! This is maybe a new URL 👀 CC @escattone |
@peterbe 👍 I like your simple solution, but would suggest the wording |
|
As per #3196 we are removing the Page macro (transclusion).
Prior to this change, All keyboard shortcuts contains all shortcuts, parts of which are transcluded into other docs - e.g. Debugger Keyboard shortcuts and Eyedropper
Where possible, this PR moves the content from the All keyboard shortcuts and then links from the old page to the new page.
I went back and forth a few times considering perhaps:
I am not certain this was the best decision, mostly because now the shortcuts are scattered. I do think that that if you're using web console, page inspector etc you probably are happy enough with the current way. If you think I'd be better off duplicating or linking to the All ... doc instead let me know - relatively easy fix.