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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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