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

fix https://github.com/toeverything/AFFiNE/issues/5881
This commit is contained in:
Peng Xiao
2024-02-23 06:29:49 +00:00
parent bef72029a0
commit 7ec3f7a042

View File

@@ -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,
}));
},
})
);