Skip to content

Commit 57ab0ed

Browse files
committed
Fixed shortcut handling. Reverted to [Shift]+[+=]
Realized browsers use [Ctrl]+[+=] for zoom, so using [Shift]+[+=] for collapse/expand was not necessarily a conflict. Also a bugfix.
1 parent 01dc9f0 commit 57ab0ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ r##"<!DOCTYPE html>
103103
<dd>Move down in search results</dd>
104104
<dt>&#9166;</dt>
105105
<dd>Go to active search result</dd>
106-
<dt>T</dt>
106+
<dt>+</dt>
107107
<dd>Collapse/expand all sections</dd>
108108
</dl>
109109
</div>

src/librustdoc/html/static/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
focusSearchBar();
125125
break;
126126

127-
case "t":
128-
case "T":
127+
case "+":
128+
ev.preventDefault();
129129
toggleAllDocs();
130130
break;
131131

0 commit comments

Comments
 (0)