mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
fix: disable default save page as (#6548)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
@@ -238,6 +238,22 @@ export function useRegisterBlocksuiteEditorCommands() {
|
||||
);
|
||||
}
|
||||
|
||||
unsubs.push(
|
||||
registerAffineCommand({
|
||||
id: 'alert-ctrl-s',
|
||||
category: 'affine:general',
|
||||
preconditionStrategy: PreconditionStrategy.Never,
|
||||
keyBinding: {
|
||||
binding: '$mod+s',
|
||||
},
|
||||
label: '',
|
||||
icon: null,
|
||||
run() {
|
||||
toast(t['Save']());
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
return () => {
|
||||
unsubs.forEach(unsub => unsub());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user