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
This commit is contained in:
Fusion
2026-05-24 12:14:11 +02:00
parent 06fe8623bc
commit f5c2c95af0
+3 -3
View File
@@ -275,10 +275,10 @@ export const TerminalComponent: React.FC<TerminalProps> = ({
} }
}; };
// Focus hidden input on mobile to keep keyboard open // Focus terminal on mobile to keep keyboard open
const handleTerminalClick = () => { const handleTerminalClick = () => {
if (isMobile && hiddenInputRef.current) { if (isMobile && termRef.current) {
hiddenInputRef.current.focus(); termRef.current.focus();
} }
}; };