mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-24 09:38:25 +00:00
feat: tab for 4 spaces
This commit is contained in:
parent
ec97735e94
commit
2d32e02dba
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ ShortcutEventHandler tabHandler = (editorState, event) {
|
|||
if (textNode.subtype != BuiltInAttributeKey.bulletedList ||
|
||||
previous == null ||
|
||||
previous.subtype != BuiltInAttributeKey.bulletedList) {
|
||||
TransactionBuilder(editorState)
|
||||
..insertText(textNode, selection.end.offset, ' ' * 4)
|
||||
..commit();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue