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

WIP stack: Update previous_keyboard only when enter() is called #1168

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Jan 22, 2025

Attempt at fixing #1129.

This does seem to fix that issue with the reproduction steps listed there, but I still see it if I create a stack with a terminal and firefox, focus the terminal (element index 0 in the stack) and close it, then try to type in firefox (now element index 0).

So managing what child has keyboard focus still needs some work. I'm not sure exactly what conditions apply were I've randomly seen this behavior in actual use (and if this particular change helps) or if this could cause problems.

Attempt at fixing #1129.

This does seem to fix that issue with the reproduction steps listed
there, but I still see it if I create a stack with a terminal and
firefox, focus the terminal (element index 0 in the stack) and close it,
then try to type in firefox (now element index 0).

So managing what child has keyboard focus still needs some work. I'm not
sure exactly what conditions apply were I've randomly seen this behavior
in actual use (and if this particular change helps) or if this could
cause problems.
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.

1 participant