fix(ui): change focus search bar shortcut overlapping with url shortcut (#5336)

This commit is contained in:
spaghetti-coder 2025-12-11 01:56:20 +02:00 committed by GitHub
parent baf33af980
commit 7479205e21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ const SearchBar = observer(() => {
useEffect(() => {
const handleGlobalShortcut = (event: KeyboardEvent) => {
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
if ((event.metaKey || event.ctrlKey) && event.key === "/") {
event.preventDefault();
inputRef.current?.focus();
}