-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fully handle "?" shortcut #75393
Fully handle "?" shortcut #75393
Conversation
Some changes occurred in HTML/CSS/JS. |
r? @ollie27 (rust_highfive has picked a reviewer for you, use r? to override) |
r? @jyn514 |
e1d2090
to
81bb314
Compare
src/librustdoc/html/static/main.js
Outdated
@@ -408,7 +408,7 @@ function defocusSearchBar() { | |||
break; | |||
|
|||
case "?": | |||
if (ev.shiftKey) { | |||
if (ev.key || ev.shiftKey) { |
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.
Why not just remove this branch?
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've been switching between this and removing the condition for a while. You made the balance change haha.
81bb314
to
fdf2fe1
Compare
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.
Looks good to me but I didn't test it out.
I tested both and they worked on my computer. If an issue occurs, it's pretty simple to rollback. @bors: r=pickfire rollup |
📌 Commit fdf2fe1 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#75036 (Prefer pattern matching over indexing) - rust-lang#75378 (Introduce `rustc_lexer::is_ident` and use it in couple of places) - rust-lang#75393 (Fully handle "?" shortcut) - rust-lang#75403 (Update comment for function) - rust-lang#75407 (Requested changes to [*mut T|*const T]::set_ptr_value) - rust-lang#75408 (Update MinGW comments in ci.yml) - rust-lang#75409 (Fix range term in alloc vec doc) Failed merges: r? @ghost
Looks like everyone took care of this without me 😆 |
Fixes #75386.
cc @runiq