Unverified Commit 7479205e authored by spaghetti-coder's avatar spaghetti-coder Committed by GitHub

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

parent baf33af9
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment