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.