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(electron): cmd+num not working on mac (#7865)
pengx17d5edadabe683
diff --git a/packages/frontend/electron/src/main/application-menu/create.ts b/packages/frontend/electron/src/main/application-menu/create.tsindex 0120646f8a..016dac844c 100644--- a/packages/frontend/electron/src/main/application-menu/create.ts+++ b/packages/frontend/electron/src/main/application-menu/create.ts@@ -139,22 +139,19 @@ export function createApplicationMenu() {undoCloseTab().catch(console.error);},},- {- label: 'Switch to tab',- acceleratorWorksWhenHidden: true,- visible: false,- submenu: [1, 2, 3, 4, 5, 6, 7, 8, 9].map(n => {- const shortcut = `CommandOrControl+${n}`;- const listener = () => {- switchTab(n);- };- return {- label: `Switch to tab ${n}`,- accelerator: shortcut,- click: listener,- };- }),- },+ ...[1, 2, 3, 4, 5, 6, 7, 8, 9].map(n => {+ const shortcut = `CommandOrControl+${n}`;+ const listener = () => {+ switchTab(n);+ };+ return {+ acceleratorWorksWhenHidden: true,+ label: `Switch to tab ${n}`,+ accelerator: shortcut,+ click: listener,+ visible: false,+ };+ }),],},{diff --git a/tests/affine-desktop/e2e/tabs.spec.ts b/tests/affine-desktop/e2e/tabs.spec.tsindex 0d2b3f6864..e1a1c7a479 100644--- a/tests/affine-desktop/e2e/tabs.spec.ts+++ b/tests/affine-desktop/e2e/tabs.spec.ts@@ -154,7 +154,9 @@ async function enableSplitView(page: Page) {}));});- await page.reload();+ await page.reload({+ timeout: 30000,+ });}test('open new tab via cmd+click page link', async ({ page }) => {