Auto merge of #148466 - liigo:better-rustdoc, r=GuillaumeGomez
rustdoc: quality of life changes - Support `=` shortcut (alongside `+`) to expand all sections. Already support `s` and `S`, `Shift` or not. - ~~Fix search-input's placeholder. The input is auto focused, any key press will be accepted as input not shortcut, current placeholder is missleading.~~
This commit is contained in:
commit
2fcbda6c1a
1 changed files with 2 additions and 1 deletions
|
|
@ -683,6 +683,7 @@ function preLoadCss(cssUrl) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "+":
|
case "+":
|
||||||
|
case "=":
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
expandAllDocs();
|
expandAllDocs();
|
||||||
break;
|
break;
|
||||||
|
|
@ -1620,7 +1621,7 @@ function preLoadCss(cssUrl) {
|
||||||
["↓", "Move down in search results"],
|
["↓", "Move down in search results"],
|
||||||
["← / →", "Switch result tab (when results focused)"],
|
["← / →", "Switch result tab (when results focused)"],
|
||||||
["⏎", "Go to active search result"],
|
["⏎", "Go to active search result"],
|
||||||
["+", "Expand all sections"],
|
["+ / =", "Expand all sections"],
|
||||||
["-", "Collapse all sections"],
|
["-", "Collapse all sections"],
|
||||||
// for the sake of brevity, we don't say "inherit impl blocks",
|
// for the sake of brevity, we don't say "inherit impl blocks",
|
||||||
// although that would be more correct,
|
// although that would be more correct,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue