ghosttyTerminalMatchesSelectAllShortcut function
- LogicalKeyboardKey key, {
- required GhosttyTerminalModifierState modifiers,
- required TargetPlatform platform,
Whether the current key chord should trigger terminal select-all.
Implementation
bool ghosttyTerminalMatchesSelectAllShortcut(
LogicalKeyboardKey key, {
required GhosttyTerminalModifierState modifiers,
required TargetPlatform platform,
}) {
if (platform == TargetPlatform.macOS) {
return modifiers.metaPressed && key == LogicalKeyboardKey.keyA;
}
return modifiers.controlPressed &&
modifiers.shiftPressed &&
key == LogicalKeyboardKey.keyA;
}