mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 06:33:32 +03:00
fix(core): fix block suite edit mode switch shortcut (#4813)
This commit is contained in:
parent
604c3da9fe
commit
6ef02fbc38
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user