mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: do not show save dialog when Ctrl+S is pressed
This commit is contained in:
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user