Skip to content

Explain what ESC does #82522

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2913,6 +2913,7 @@ function defocusSearchBar() {
["⏎", "Go to active search result"],
["+", "Expand all sections"],
["-", "Collapse all sections"],
["esc", "<p>Close the search view,</p><p>Remove the query parameters from the URL,</p><p>Close the help popup,</p><p>Close the theme list if open,</p><p>Blur the focus from the search input</p>"],
].map(function(x) {
return "<dt>" +
x[0].split(" ")
Expand Down
3 changes: 1 addition & 2 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,6 @@ body.blur > :not(#help) {
float: left;
clear: left;
display: block;
margin-right: 0.5rem;
}
#help > div > span {
text-align: center;
Expand All @@ -809,7 +808,7 @@ body.blur > :not(#help) {
padding-bottom: 4px;
margin-bottom: 6px;
}
#help dd { margin: 5px 35px; }
#help dd { margin: 5px 35px 5px 50px; }
#help .infos { padding-left: 0; }
#help h1, #help h2 { margin-top: 0; }
#help > div div {
Expand Down