docs icon indicating copy to clipboard operation
docs copied to clipboard

[Bug] `/` can't focus the search bar when the page finished loading

Open wenfangdu opened this issue 2 years ago • 5 comments

My cmd+k is already in use, so I use / to focus the search bar. However, / doesn't work when the page has just finished loading, it works only if I have opened the search widget before.

wenfangdu avatar Feb 22 '23 05:02 wenfangdu

@wenfangdu https://github.com/vuepress/vuepress-next/pull/1323

viniciusteixeiradias avatar May 01 '23 12:05 viniciusteixeiradias

Vuejs official docs use VitePress, so wrong repo.

Mister-Hope avatar May 01 '23 13:05 Mister-Hope

@Mister-Hope Yes, my bad. Now it is right https://github.com/vuejs/vitepress/pull/2328.

viniciusteixeiradias avatar May 01 '23 13:05 viniciusteixeiradias

Still wrong repo. It does not use the default VitePress theme. It uses https://github.com/vuejs/theme. But yeah we could consider it at the default theme too, so keeping that open for now.

brc-dd avatar May 01 '23 15:05 brc-dd

@brc-dd Omg, sorry hahaha. I will check the repo https://github.com/vuejs/theme.

viniciusteixeiradias avatar May 01 '23 22:05 viniciusteixeiradias