There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: search hotkey prevent default (#1195)
m1212e138dd98c0c7b
diff --git a/apps/web/src/components/quick-search/index.tsx b/apps/web/src/components/quick-search/index.tsxindex 541e98d2cf..252bc98ead 100644--- a/apps/web/src/components/quick-search/index.tsx+++ b/apps/web/src/components/quick-search/index.tsx@@ -52,6 +52,8 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {const down = (e: KeyboardEvent) => {if ((e.key === 'k' && e.metaKey) || (e.key === 'k' && e.ctrlKey)) {const selection = window.getSelection();+ // prevent search bar focus in firefox+ e.preventDefault();setQuery('');if (selection?.toString()) {triggerQuickSearchModal(false);