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 15:14:39 +08:00
committed by LongYinan
parent e400abf1f4
commit df17001284
@@ -83,11 +83,12 @@ export function registerAffineNavigationCommands({
category: 'affine:navigation', category: 'affine:navigation',
icon: <ArrowRightBigIcon />, icon: <ArrowRightBigIcon />,
label: t['com.affine.cmdk.affine.navigation.open-settings'](), label: t['com.affine.cmdk.affine.navigation.open-settings'](),
keyBinding: '$mod+,',
run() { run() {
store.set(openSettingModalAtom, { store.set(openSettingModalAtom, s => ({
activeTab: 'appearance', activeTab: 'appearance',
open: true, open: !s.open,
}); }));
}, },
}) })
); );