Skip to content

Don't autofocus the search bar when changing pages.

Administrator requested to merge olafurpg/autofocus-search into main

Created by: olafurpg

Fixes https://github.com/sourcegraph/sourcegraph/issues/28846

Previously, the search bar was auto-focused every time when loading a new file. The search har overrides several shortcuts like "Cmd+Left" requiring the user to move their mouse to the browser's "back" button to go back in history (or unfocus the search bar).

Recording to motivate this change https://www.loom.com/share/8f8badb18eb24e24932a4a0c61f6b598

Merge request reports

Loading