Skip to content

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

web: create new tab on create note button's middle click Signed-off-by: 01zulfi <[email protected]>

01zulfi13d8a7baf7a8
diff --git a/apps/web/src/common/index.ts b/apps/web/src/common/index.ts
index 7872db968..d8656c92a 100644
--- a/apps/web/src/common/index.ts
+++ b/apps/web/src/common/index.ts
@@ -53,7 +53,8 @@ import { MenuItem } from "@notesnook/ui";
export const CREATE_BUTTON_MAP = {
notes: {
title: strings.addItem("note"),
- onClick: () => useEditorStore.getState().newSession()
+ onClick: () => useEditorStore.getState().newSession(),
+ onAuxClick: () => useEditorStore.getState().addTab()
},
notebooks: {
title: strings.addItem("notebook"),