Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: do not show save dialog when Ctrl+S is pressed

Abdullah Atta1f065bcbb22b
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx
index 251a45b2e..658175529 100644
--- a/apps/web/src/components/editor/tiptap.tsx
+++ b/apps/web/src/components/editor/tiptap.tsx
@@ -154,6 +154,10 @@ function TipTap(props: TipTapProps) {
const tiptapOptions = useMemo<Partial<TiptapOptions>>(() => {
return {
editorProps: {
+ handleKeyDown(view, event) {
+ if ((event.ctrlKey || event.metaKey) && event.key === "s")
+ event.preventDefault();
+ },
handlePaste: (view, event) => {
const hasText = event.clipboardData?.types?.some((type) =>
type.startsWith("text/")