From f5c2c95af0a4e8be3fe3ff0dbe7444ed44f8d02e Mon Sep 17 00:00:00 2001 From: Fusion Date: Sun, 24 May 2026 12:14:11 +0200 Subject: [PATCH] fix: focus xterm terminal on tap instead of hidden input - Use term.focus() instead of hidden input focus - This ensures keyboard opens properly when tapping anywhere on terminal --- apps/web/src/components/terminal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/terminal.tsx b/apps/web/src/components/terminal.tsx index 59e39c8..08a5776 100644 --- a/apps/web/src/components/terminal.tsx +++ b/apps/web/src/components/terminal.tsx @@ -275,10 +275,10 @@ export const TerminalComponent: React.FC = ({ } }; - // Focus hidden input on mobile to keep keyboard open + // Focus terminal on mobile to keep keyboard open const handleTerminalClick = () => { - if (isMobile && hiddenInputRef.current) { - hiddenInputRef.current.focus(); + if (isMobile && termRef.current) { + termRef.current.focus(); } };