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

This commit is contained in:
EYHN authored and GitHub committed 2023-11-02 07:17:44 +00:00
1 parent 604c3da9fe
commit 6ef02fbc38
1 file changed
+1 -5
@@ -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(