Select text too when pressing /

This commit is contained in:
Lim Chee Aun 2024-04-03 09:28:59 +08:00
parent 7100937e79
commit 090320150a

View file

@ -177,6 +177,7 @@ function Search({ columnMode, ...props }) {
['/', 'Slash'],
(e) => {
searchFormRef.current?.focus?.();
searchFormRef.current?.select?.();
},
{
preventDefault: true,