Skip to content
Open
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
2 changes: 1 addition & 1 deletion crates/mdbook-html/front-end/searcher/searcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
if (e.altKey ||
e.ctrlKey ||
e.metaKey ||
e.shiftKey ||
(e.shiftKey && e.key !== '/') ||

Check failure on line 360 in crates/mdbook-html/front-end/searcher/searcher.js

View workflow job for this annotation

GitHub Actions / GUI tests

Unnecessary parentheses around expression

@GuillaumeGomez GuillaumeGomez Sep 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the shiftKey check completely.

View changes since the review

e.target.type === 'textarea' ||
e.target.type === 'text' ||
!hasFocus() && mdbook_something_else_has_focus(e)
Expand Down
Loading