1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

shortcut restrictions

This commit is contained in:
Andrew Simachev 2023-02-25 14:52:37 +03:00
parent 1f72fb87c0
commit d220cc3c81
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -809,15 +809,17 @@ const EditorPage = observer(class EditorPage extends React.Component<Props> {
};
};
for (const item of styleParam) {
let style = null;
if (!isInsideTable && block.isText()) {
for (const item of styleParam) {
let style = null;
keyboard.shortcut(item.key, e, (pressed: string) => {
style = item.style;
});
keyboard.shortcut(item.key, e, (pressed: string) => {
style = item.style;
});
if (style !== null) {
C.BlockListTurnInto(rootId, [ block.id ], style);
if (style !== null) {
C.BlockListTurnInto(rootId, [ block.id ], style);
};
};
};