fix(app): terminal tab rename focus (#36695)
This commit is contained in:
parent
5bdfcaac3c
commit
59fe350972
1 changed files with 9 additions and 1 deletions
|
|
@ -262,7 +262,15 @@ export function TerminalPanelV2(props: { stacked?: boolean } = {}) {
|
|||
onChange={(id) => terminal.open(id)}
|
||||
class={newLayout() ? "!h-[52px] !flex-none" : "!h-auto !flex-none"}
|
||||
>
|
||||
<Tabs.List ref={tabList} class={newLayout() ? undefined : "h-10 border-b border-border-weaker-base"}>
|
||||
<Tabs.List
|
||||
ref={tabList}
|
||||
class={newLayout() ? undefined : "h-10 border-b border-border-weaker-base"}
|
||||
onPointerDown={(event: PointerEvent & { currentTarget: HTMLDivElement }) => {
|
||||
const active = document.activeElement
|
||||
if (event.target === active) return
|
||||
if (active instanceof HTMLInputElement && event.currentTarget.contains(active)) active.blur()
|
||||
}}
|
||||
>
|
||||
<For each={all()}>
|
||||
{(pty, index) => (
|
||||
<SortableTerminalTabV2 terminal={pty} index={index} newLayout={newLayout()} onClose={close} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue