From a187a21ef2d8a257b6671f4ceed3f7b998114815 Mon Sep 17 00:00:00 2001 From: Haileyesus <118998054+blackmammoth@users.noreply.github.com> Date: Sat, 27 Jun 2026 17:41:22 +0300 Subject: [PATCH] feat(shell): add Ctrl+C button to mobile terminal shortcuts Add a Ctrl+C key to the right end of the mobile shortcuts bar so users can interrupt the foreground process without a physical keyboard. Sends \x03 (ETX), which is the same interrupt sequence on Windows and Linux. --- .../shell/view/subcomponents/TerminalShortcutsPanel.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/shell/view/subcomponents/TerminalShortcutsPanel.tsx b/src/components/shell/view/subcomponents/TerminalShortcutsPanel.tsx index 94d3d491..88c1ee9e 100644 --- a/src/components/shell/view/subcomponents/TerminalShortcutsPanel.tsx +++ b/src/components/shell/view/subcomponents/TerminalShortcutsPanel.tsx @@ -26,6 +26,7 @@ const MOBILE_KEYS: Shortcut[] = [ { type: 'arrow', id: 'arrow-down', sequence: '\x1b[B', icon: 'down' }, { type: 'arrow', id: 'arrow-left', sequence: '\x1b[D', icon: 'left' }, { type: 'arrow', id: 'arrow-right', sequence: '\x1b[C', icon: 'right' }, + { type: 'key', id: 'ctrl-c', label: 'Ctrl+C', sequence: '\x03' }, ]; const ARROW_ICONS = {