fix(core): fix block suite edit mode switch shortcut (#4813)

This commit is contained in:
EYHN
2023-11-02 15:17:44 +08:00
committed by GitHub
parent 604c3da9fe
commit 6ef02fbc38

View File

@@ -51,11 +51,7 @@ export const EditorModeSwitch = ({
return; return;
} }
const keydown = (e: KeyboardEvent) => { const keydown = (e: KeyboardEvent) => {
if ( if (e.code === 'KeyS' && e.altKey) {
!environment.isServer && environment.isMacOs
? e.key === 'ß'
: e.key === 's' && e.altKey
) {
e.preventDefault(); e.preventDefault();
togglePageMode(pageId); togglePageMode(pageId);
toast( toast(