fix(tui): honor client copy shortcut over ssh

- accept forwarded Cmd+C for selection copy in SSH sessions even when Hermes runs on Linux
- keep local Linux Alt+C from acting as copy and update TUI hotkey hints for remote shells
This commit is contained in:
Brooklyn Nicholson 2026-04-25 14:44:39 -05:00
parent 283c8fd6e2
commit bcc5362432
4 changed files with 48 additions and 10 deletions

View file

@ -8,7 +8,7 @@ import type {
SudoRespondResponse,
VoiceRecordResponse
} from '../gatewayTypes.js'
import { isAction, isMac, isVoiceToggleKey } from '../lib/platform.js'
import { isAction, isCopyShortcut, isMac, isVoiceToggleKey } from '../lib/platform.js'
import { getInputSelection } from './inputSelectionStore.js'
import type { InputHandlerContext, InputHandlerResult } from './interfaces.js'
@ -315,7 +315,7 @@ export function useInputHandlers(ctx: InputHandlerContext): InputHandlerResult {
}
}
if (isAction(key, ch, 'c')) {
if (isCopyShortcut(key, ch)) {
if (terminal.hasSelection) {
return copySelection()
}