tabToDeleteSpacesInCodeBlockCommand function
Shift+tab to delete two spaces at the line start in code block if needed.
- support
- desktop
- web
Implementation
CommandShortcutEvent tabToDeleteSpacesInCodeBlockCommand(
String description,
) =>
CommandShortcutEvent(
key: 'shift + tab to delete two spaces at the line start in code block',
command: 'shift+tab',
getDescription: () => description,
handler: (editorState) => _indentationInCodeBlockCommandHandler(
editorState,
false,
),
);