Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass TerminalView's autofocus to the InputListener that it creates. #10

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

timburks
Copy link
Contributor

@timburks timburks commented Feb 1, 2021

I noticed that setting autofocus=true in the TerminalView constructor didn't seem to cause the TerminalView to take focus, but when I made this change to pass the TerminalView's autofocus setting down to the InputListener, it worked - the TerminalView took focus when my app started (on Linux and web).

At the point of change, the InputListener autofocus was intentionally set to false (and had at one time been true), but this may have been done before there was a TerminalView autofocus value to use there.

This change should have no effect when the TerminalView's autofocus is false (the default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants