fix(ui): change focus search bar shortcut overlapping with url shortcut (#5336)
This commit is contained in:
parent
baf33af980
commit
7479205e21
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ const SearchBar = observer(() => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleGlobalShortcut = (event: KeyboardEvent) => {
|
const handleGlobalShortcut = (event: KeyboardEvent) => {
|
||||||
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
|
if ((event.metaKey || event.ctrlKey) && event.key === "/") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
inputRef.current?.focus();
|
inputRef.current?.focus();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue