Skip to content

Commit 07b5c2a

Browse files
authored
Rollup merge of rust-lang#65740 - GuillaumeGomez:fix-disable-shortcut-feature, r=Dylan-DPC
Fix default "disable-shortcuts" feature value Follow-up of rust-lang#65656 It fixes the bad handling of the default value of the feature (which would disable shortcut by default, which is bad!). r? @Dylan-DPC cc @kinnison
2 parents 3e3f21c + 01a1bcb commit 07b5c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function getSearchElement() {
7979
"derive",
8080
"traitalias"];
8181

82-
var disableShortcuts = getCurrentValue("rustdoc-disable-shortcuts") !== "true";
82+
var disableShortcuts = getCurrentValue("rustdoc-disable-shortcuts") === "true";
8383
var search_input = getSearchInput();
8484

8585
// On the search screen, so you remain on the last tab you opened.

0 commit comments

Comments
 (0)