mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
fix(core): fix block suite edit mode switch shortcut (#4813)
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user