defaultTerminalShortcuts top-level property

Map<ShortcutActivator, Intent> get defaultTerminalShortcuts

xterm's default shortcuts of TerminalView for the current platform: Ctrl+Shift+C copies, Ctrl+V pastes and Ctrl+A selects all on Android, Fuchsia, Linux and Windows; Cmd+C, Cmd+V and Cmd+A on iOS and macOS.

Unlike ghostty_dart_flutter's own view, these take Ctrl+V and Ctrl+A from the shell: the adapter keeps xterm's behaviour (ADR 0013). Pass your own map to TerminalView.shortcuts to change them.

Implementation

Map<ShortcutActivator, Intent> get defaultTerminalShortcuts {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
    case TargetPlatform.fuchsia:
    case TargetPlatform.linux:
    case TargetPlatform.windows:
      return _defaultShortcuts;
    case TargetPlatform.iOS:
    case TargetPlatform.macOS:
      return _defaultAppleShortcuts;
  }
}