ignoreKeysInCodeBlock top-level property

List<CharacterShortcutEvent> ignoreKeysInCodeBlock
final

Ignore ' ', '/', '_', '*' in code block.

  • support
    • desktop
    • web
    • mobile

Implementation

final List<CharacterShortcutEvent> ignoreKeysInCodeBlock =
    [' ', '/', '_', '*', '~', '-']
        .map(
          (e) => CharacterShortcutEvent(
            key: 'ignore keys in code block',
            character: e,
            handler: (editorState) =>
                _ignoreKeysInCodeBlockCommandHandler(editorState, e),
          ),
        )
        .toList();