Skip to content

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.

feat(core): add shortcut for openning settings (#5883)

Peng Xiao7ec3f7a042e5
diff --git a/packages/frontend/core/src/commands/affine-navigation.tsx b/packages/frontend/core/src/commands/affine-navigation.tsx
index 8974d917c7..2e2fa58f7c 100644
--- a/packages/frontend/core/src/commands/affine-navigation.tsx
+++ b/packages/frontend/core/src/commands/affine-navigation.tsx
@@ -83,11 +83,12 @@ export function registerAffineNavigationCommands({
category: 'affine:navigation',
icon: <ArrowRightBigIcon />,
label: t['com.affine.cmdk.affine.navigation.open-settings'](),
+ keyBinding: '$mod+,',
run() {
- store.set(openSettingModalAtom, {
+ store.set(openSettingModalAtom, s => ({
activeTab: 'appearance',
- open: true,
- });
+ open: !s.open,
+ }));
},
})
);