Skip to content

Add mobile-only "Send Ctrl + C" to shellv2 ellipsis menu#2266

Merged
KCarretto merged 2 commits intomainfrom
copilot/add-send-ctrl-c-menu-option
Apr 17, 2026
Merged

Add mobile-only "Send Ctrl + C" to shellv2 ellipsis menu#2266
KCarretto merged 2 commits intomainfrom
copilot/add-send-ctrl-c-menu-option

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 17, 2026

Mobile devices can't send Ctrl+C to the terminal. Adds a menu option (visible only on viewports < 768px) that programmatically sends the interrupt signal, similar to VMware's virtual keyboard approach.

Changes

  • useShellTerminal.ts — New sendCtrlC callback that executes the existing \x03 handler logic (reset adapter, clear input buffer, write ^C, restore prompt)
  • ShellActionsMenu.tsx — Mobile detection via resize listener (matches existing ButtonDialogPopover pattern), conditionally renders "Send Ctrl + C" item with StopCircle icon
  • ShellHeader.tsx / index.tsx — Prop passthrough from useShellTerminalShellHeaderShellActionsMenu
  • ShellHeader.test.tsx — Updated default props to include onSendCtrlC

@KCarretto KCarretto marked this pull request as ready for review April 17, 2026 22:41
@KCarretto KCarretto merged commit 1edde14 into main Apr 17, 2026
6 of 8 checks passed
@KCarretto KCarretto deleted the copilot/add-send-ctrl-c-menu-option branch April 17, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants