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

Focus issues for modals. #240

Open
hydra opened this issue Jan 13, 2025 · 0 comments
Open

Focus issues for modals. #240

hydra opened this issue Jan 13, 2025 · 0 comments

Comments

@hydra
Copy link
Contributor

hydra commented Jan 13, 2025

In PR #238 there is an example called modal-split.rs which shows how to create two independent modals. In testing keyboard support for this new example the following issues are observed:

  1. if you open both modals, and then press tab it's possible to focus the buttons behind the modals by pressing tab, as per this video.
Screen.Recording.2025-01-13.112523.mp4
  • the elements behind the modals should not be able to be focused.
  1. pressing 'enter' should activate the focused modal's default button.
    If you open both the left and right modals, then use the keyboard to move the focus to the left modal, then press 'enter' the model on the right closes. See also Support multiple default widgets #219.
Screen.Recording.2025-01-13.112402.mp4
  • pressing enter should activate the 'default' button for the modal with the focus.
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

No branches or pull requests

1 participant