mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: tab for 4 spaces
This commit is contained in:
parent
ec97735e94
commit
2d32e02dba
@ -16,6 +16,9 @@ ShortcutEventHandler tabHandler = (editorState, event) {
|
|||||||
if (textNode.subtype != BuiltInAttributeKey.bulletedList ||
|
if (textNode.subtype != BuiltInAttributeKey.bulletedList ||
|
||||||
previous == null ||
|
previous == null ||
|
||||||
previous.subtype != BuiltInAttributeKey.bulletedList) {
|
previous.subtype != BuiltInAttributeKey.bulletedList) {
|
||||||
|
TransactionBuilder(editorState)
|
||||||
|
..insertText(textNode, selection.end.offset, ' ' * 4)
|
||||||
|
..commit();
|
||||||
return KeyEventResult.handled;
|
return KeyEventResult.handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user