mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
rustdoc: Prevent '/' from showing the help dialog
Only '?' should do that. Fixes #24289.
This commit is contained in:
parent
c3947061d6
commit
cef96b95f2
@ -78,9 +78,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.which === 191 && $('#help').hasClass('hidden')) { // question mark
|
if (e.which === 191) { // question mark
|
||||||
e.preventDefault();
|
if (e.shiftKey && $('#help').hasClass('hidden')) {
|
||||||
$('#help').removeClass('hidden');
|
e.preventDefault();
|
||||||
|
$('#help').removeClass('hidden');
|
||||||
|
}
|
||||||
} else if (e.which === 27) { // esc
|
} else if (e.which === 27) { // esc
|
||||||
if (!$('#help').hasClass('hidden')) {
|
if (!$('#help').hasClass('hidden')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user