moveCursorTopCommand top-level property

CommandShortcutEvent moveCursorTopCommand
final

arrow up + ctrl or cmd move the cursor to the topmost position of the document

Implementation

final CommandShortcutEvent moveCursorTopCommand = CommandShortcutEvent(
  key: 'move cursor to start of file',
  getDescription: () => AppFlowyEditorL10n.current.cmdMoveCursorTop,
  command: 'ctrl+arrow up',
  macOSCommand: 'cmd+arrow up',
  handler: _moveCursorTopCommandHandler,
);