From 2e53fab61fafac18cec0495c6268445b0fb7ceab Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Thu, 23 Apr 2026 11:50:16 -0700 Subject: [PATCH] fix(terminal): focus terminal after file-tree drop (#978) (#986) Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> --- src/renderer/src/components/terminal-pane/TerminalPane.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/src/components/terminal-pane/TerminalPane.tsx b/src/renderer/src/components/terminal-pane/TerminalPane.tsx index abadfea7e..5d80c2304 100644 --- a/src/renderer/src/components/terminal-pane/TerminalPane.tsx +++ b/src/renderer/src/components/terminal-pane/TerminalPane.tsx @@ -854,6 +854,11 @@ export default function TerminalPane({ return } transport.sendInput(shellEscapePath(filePath)) + // Move focus to the terminal so the user can keep typing where the + // dropped path just landed. Without this, focus stays on the file + // tree row that originated the drag and subsequent keystrokes do + // not reach the pty — #978. + pane.terminal.focus() }} /> {terminalError && isActive && (