mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat(core): add shortcut for openning settings (#5883)
fix https://github.com/toeverything/AFFiNE/issues/5881
This commit is contained in:
@@ -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,
|
||||||
});
|
}));
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user