kCodeShortcutIntents top-level constant

Map<CodeShortcutType, Intent> const kCodeShortcutIntents

Implementation

const Map<CodeShortcutType, Intent> kCodeShortcutIntents = {
  CodeShortcutType.selectAll: CodeShortcutSelectAllIntent(),
  CodeShortcutType.cut: CodeShortcutCutIntent(),
  CodeShortcutType.copy: CodeShortcutCopyIntent(),
  CodeShortcutType.paste: CodeShortcutPasteIntent(),
  CodeShortcutType.delete: CodeShortcutDeleteIntent(true),
  CodeShortcutType.backspace: CodeShortcutDeleteIntent(false),
  CodeShortcutType.undo: CodeShortcutUndoIntent(),
  CodeShortcutType.redo: CodeShortcutRedoIntent(),
  CodeShortcutType.lineSelect: CodeShortcutLineSelectIntent(),
  CodeShortcutType.lineDelete: ShortcutLineDeleteIntent(),
  CodeShortcutType.lineMoveUp: ShortcutLineMoveIntent(VerticalDirection.up),
  CodeShortcutType.lineMoveDown: ShortcutLineMoveIntent(VerticalDirection.down),
  CodeShortcutType.cursorMoveUp: CodeShortcutCursorMoveIntent(AxisDirection.up),
  CodeShortcutType.cursorMoveDown: CodeShortcutCursorMoveIntent(AxisDirection.down),
  CodeShortcutType.cursorMoveForward: CodeShortcutCursorMoveIntent(AxisDirection.right),
  CodeShortcutType.cursorMoveBackward: CodeShortcutCursorMoveIntent(AxisDirection.left),
  CodeShortcutType.cursorMoveLineStart: CodeShortcutCursorMoveLineEdgeIntent(false),
  CodeShortcutType.cursorMoveLineEnd: CodeShortcutCursorMoveLineEdgeIntent(true),
  CodeShortcutType.cursorMovePageStart: CodeShortcutCursorMoveDocEdgeIntent(false),
  CodeShortcutType.cursorMovePageEnd: CodeShortcutCursorMoveDocEdgeIntent(true),
  CodeShortcutType.cursorMovePageUp: CodeShortcutCursorMovePageIntent(false),
  CodeShortcutType.cursorMovePageDown: CodeShortcutCursorMovePageIntent(true),
  CodeShortcutType.cursorMoveWordBoundaryForward: CodeShortcutCursorMoveWordBoundaryIntent(true),
  CodeShortcutType.cursorMoveWordBoundaryBackward: CodeShortcutCursorMoveWordBoundaryIntent(false),
  CodeShortcutType.selectionExtendUp: CodeShortcutSelectionExtendIntent(AxisDirection.up),
  CodeShortcutType.selectionExtendDown: CodeShortcutSelectionExtendIntent(AxisDirection.down),
  CodeShortcutType.selectionExtendForward: CodeShortcutSelectionExtendIntent(AxisDirection.right),
  CodeShortcutType.selectionExtendBackward: CodeShortcutSelectionExtendIntent(AxisDirection.left),
  CodeShortcutType.selectionExtendLineStart: CodeShortcutSelectionExtendLineEdgeIntent(false),
  CodeShortcutType.selectionExtendLineEnd: CodeShortcutSelectionExtendLineEdgeIntent(true),
  CodeShortcutType.selectionExtendPageStart: CodeShortcutSelectionExtendPageEdgeIntent(false),
  CodeShortcutType.selectionExtendPageEnd: CodeShortcutSelectionExtendPageEdgeIntent(true),
  CodeShortcutType.selectionExtendWordBoundaryForward: CodeShortcutSelectionExtendWordBoundaryIntent(true),
  CodeShortcutType.selectionExtendWordBoundaryBackward: CodeShortcutSelectionExtendWordBoundaryIntent(false),
  CodeShortcutType.indent: CodeShortcutIndentIntent(),
  CodeShortcutType.outdent: CodeShortcutOutdentIntent(),
  CodeShortcutType.newLine: CodeShortcutNewLineIntent(),
  CodeShortcutType.transposeCharacters: CodeShortcutTransposeCharactersIntent(),
  CodeShortcutType.singleLineComment: CodeShortcutCommentIntent(true),
  CodeShortcutType.multiLineComment: CodeShortcutCommentIntent(false),
  CodeShortcutType.find: CodeShortcutFindIntent(),
  CodeShortcutType.findToggleMatchCase: CodeShortcutFindToggleMatchCaseIntent(),
  CodeShortcutType.findToggleRegex: CodeShortcutFindToggleRegexIntent(),
  CodeShortcutType.replace: CodeShortcutReplaceIntent(),
  CodeShortcutType.save: CodeShortcutSaveIntent(),
  CodeShortcutType.esc: CodeShortcutEscIntent(),
};