Uh oh!
There was an error while loading. Please reload this page.
Fixed expand/collapse shortcut to not conflict with browser shortcuts - #33797
Conversation
Allows both `T` and `t`. It had been [Shift]+[+] before.
rust-highfive
commented
May 22, 2016
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
| break; | ||
| case "+": | ||
| case "t": |
There was a problem hiding this comment.
If you're writing into the search field, does it expand all sections or not?
GuillaumeGomez
commented
May 22, 2016
Also, I open a new tab with "CTRL+T". Does it expand all sections? |
Manishearth
commented
May 22, 2016
Can't be t, since its already a well known shortcut. How about e or slash? |
Copying one of @GuillaumeGomez's comments here:
One thing to note - it currently is [Shift] + [+=], rather than just [+=]. If we like that we can leave it. Otherwise any of "e", [?/], or [|] seem fine to me, although [Shift] + [?/] brings up the help screen. |
ollie27
commented
May 23, 2016
[Ctrl]+[T] isn't a problem because of these lines. Neither is [Ctrl]+[+] for that matter. The shortcut doesn't work properly at the moment anyway because it's missing |
Realized browsers use [Ctrl]+[+=] for zoom, so using [Shift]+[+=] for collapse/expand was not necessarily a conflict. Also a bugfix.
alex-ozdemir
commented
May 23, 2016
Thanks! I was only testing on Chrome, so I didn't realize the |
Manishearth
commented
May 23, 2016
Ah, okay. Could you upload a copy of this running somewhere? |
GuillaumeGomez
commented
May 23, 2016
I'd like to test it as well. |
alex-ozdemir
commented
May 23, 2016
Good idea. The documentation for |
Manishearth
commented
May 23, 2016
looks good to me @bors delegate=GuillaumeGomez |
bors
commented
May 23, 2016
✌️ @GuillaumeGomez can now approve this pull request |
GuillaumeGomez
commented
May 23, 2016
Good for me as well. Thanks @alex-ozdemir! @bors: r+ rollup |
bors
commented
May 23, 2016
📌 Commit 57ab0ed has been approved by |
TChanged toggle all sections key to `T` Allows both `T` and `t`. It had been [Shift]+[+] before. In response to rust-lang#33791. cc @Manishearth r? @GuillaumeGomez
Allows both
Tandt.It had been [Shift]+[+] before.
In response to #33791.
cc @Manishearth
r? @GuillaumeGomez