Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

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

spaghetti-coder7479205e215d
diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsx
index 5ff7ac4ad..1a4edaed2 100644
--- a/web/src/components/SearchBar.tsx
+++ b/web/src/components/SearchBar.tsx
@@ -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();
}