Skip to content

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

web: middle click on tab to close it

Abdullah Atta62bbea01e6dd
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx
index 596207783..996b1fd11 100644
--- a/apps/web/src/components/editor/action-bar.tsx
+++ b/apps/web/src/components/editor/action-bar.tsx
@@ -448,8 +448,12 @@ function Tab(props: TabProps) {
e.stopPropagation();
if (isTemporary) onKeepOpen();
}}
+ onAuxClick={(e) => {
+ if (e.button == 1) onClose();
+ }}
onClick={(e) => {
e.stopPropagation();
+ console.log(e);
onFocus();
}}
{...listeners}