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:
parent
1f72fb87c0
commit
d220cc3c81
1 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue