-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve focus/blur state #681
Comments
I believe this can be closed as it seems solved by #670 |
Yeah you're right, thanks for pointing it out! 👍 |
Reopening and fixing it in my canvas_render branch. It looks like both focus and blur get triggered twice. |
I'm calling Is there anything going on internally to cause the last focused element to regain focus? I cannot find anything in my own code which could be doing this. |
@twifty might be worth creating a new issue with versions, screenshots, etc. looks like a different problem to this issue. |
@Tyriar I'd prefer to rule out my own code before making an issue of it |
Currently clicking in the terminal will cause a blur on mousedown and a focus on mouseup (provided there is no selection). This results in the cursor showing a non-focused state even though technically the terminal is still focused and keyboard input will go to the shell.
Notice the selection and the cursor state:
We should put a layer in between the browser textarea blur/focus events and expose our own events, that way we can cover these mouse-related edge cases without affecting the cursor state.
The text was updated successfully, but these errors were encountered: