tabToInsertSpacesInCodeBlockCommand function
Tab to insert two spaces at the line start in code block, if there is more than one line selected.
- support
- desktop
- web
Implementation
CommandShortcutEvent tabToInsertSpacesInCodeBlockCommand(String description) =>
CommandShortcutEvent(
key: 'tab to insert two spaces at the line start in code block',
command: 'tab',
getDescription: () => description,
handler: (editorState) => _indentationInCodeBlockCommandHandler(
editorState,
true,
),
);