Skip to content

Bug: New terminal instances steal away focus #100

@yuri-xyz

Description

@yuri-xyz

It seems that when creating a new ghostty-web terminal instance, and calling .open() on it, it automatically steals focus away into it, via using setTimeout(() => ... this.element?.focus(), 0).

Need to at least make this configurable via a boolean prop like autoFocus: boolean and probably off by default, as it is causing unexpected issues for lib consumers.

For example, in order to regain focus on my app, I have to manually call setTimeout(() => ... myStuff.focus(), 0) after the new terminal instance initializes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions