fix(terminal): focus terminal after file-tree drop (#978) (#986)

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
This commit is contained in:
Matt Van Horn
2026-04-23 11:50:16 -07:00
committed by GitHub
co-authored by Matt Van Horn
parent 47de56c72e
commit 2e53fab61f
@@ -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 && (