diff --git a/ui-tui/src/content/hotkeys.ts b/ui-tui/src/content/hotkeys.ts index 4a52414cf4..4944a19a6a 100644 --- a/ui-tui/src/content/hotkeys.ts +++ b/ui-tui/src/content/hotkeys.ts @@ -8,10 +8,12 @@ const copyHotkeys: [string, string][] = isMac ['Cmd+C', 'copy selection'], ['Ctrl+C', 'interrupt / clear draft / exit'] ] - : [ - ...(isRemoteShell() ? ([['Cmd+C', 'copy selection when forwarded by the terminal']] as [string, string][]) : []), - ['Ctrl+C', 'copy selection / interrupt / clear draft / exit'] - ] + : isRemoteShell() + ? [ + ['Cmd+C', 'copy selection when forwarded by the terminal'], + ['Ctrl+C', 'copy selection / interrupt / clear draft / exit'] + ] + : [['Ctrl+C', 'copy selection / interrupt / clear draft / exit']] export const HOTKEYS: [string, string][] = [ ...copyHotkeys,