From b79abc9d8dd6ebbd53c01524a9a8511b3a5fd9a3 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Fri, 20 Mar 2026 01:48:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=203=20=E5=88=97?= =?UTF-8?q?=E7=BB=88=E7=AB=AF=E9=9D=A2=E6=9D=BF=E5=B8=83=E5=B1=80=20-=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E9=9D=A2=E6=9D=BF=E7=84=A6=E7=82=B9?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 3 ++- src/components/TerminalViewport.tsx | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 732290a..22269c5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -194,8 +194,9 @@ function TerminalPanel({ initialCwd, connectDelay = 0, autoFocus = false }: { in function App() { return ( -
+
+
); diff --git a/src/components/TerminalViewport.tsx b/src/components/TerminalViewport.tsx index 21927c3..af36be5 100644 --- a/src/components/TerminalViewport.tsx +++ b/src/components/TerminalViewport.tsx @@ -945,13 +945,13 @@ const TerminalViewport = React.forwardRef { + const handleContainerFocusIn = (event: FocusEvent) => { const target = event.target as Node | null; if (target && container.contains(target)) { setTerminalCursorBlink(true); - return; + } else { + setTerminalCursorBlink(false); } - setTerminalCursorBlink(false); }; const handleWindowBlur = () => { @@ -1070,7 +1070,7 @@ const TerminalViewport = React.forwardRef { @@ -1078,7 +1078,7 @@ const TerminalViewport = React.forwardRef disposable.dispose());