Skip to content

Commit

Permalink
Rollup merge of rust-lang#65740 - GuillaumeGomez:fix-disable-shortcut…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
Centril authored Oct 25, 2019
2 parents 36d6103 + 01a1bcb commit 902f940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function getSearchElement() {
"derive",
"traitalias"];

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

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

0 comments on commit 902f940

Please sign in to comment.