-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Implement Escape Management #33
Conversation
Yes. I forgot to run the tests on my local. There is problems with package size. Also I didn't implement tests for the feature. Will do it. |
Can you explain what this module does (“manager” is too common idea) and your design decision?
|
Maybe it would be better to rewrite the module to focus on the last focused element. Your opinion? Some bugs I've discovered:
|
In this case it should be a fix for existing module.
How does browser works in the most similar use case? |
I've examined the default browser behaviour without any scripting, as well as the GitLab/Google behaviour:
This means that all my work was unnecessary, because we can achieve the same behaviour just by removing the blur() method call in My bad. |
I think I need to publish an comment for action. From the beginning, I wanted to achieve default browser behaviour on pages with KeyUX libs. But I didn't investigate this issue before implementing it. To achieve better behaviour you should remove the line The function implemented in the current PR returns focus to the first focused element on the page. This function is not necessary for KeyUX. The PR should be removed. Thanks for your time. I will keep an eye out for assignments from EvilMartians. |
Why it is “better”? The idea of current behavior is to return to origin state. The origin state is no focus on the page. |
Sorry for late answer. Okey, let's forgot all my previous comments. And update the problem description Let's look at the problem with an example: AR:
ER:
I think I can solve the problem described above. What do you think? |
Yes, we may want to reset menu after leaving the focus. Can I ask you to send PR? |
This PR addresses issue #32 by implementing enhanced keyboard focus management. I'm unsure if the style fully aligns with our codebase and would appreciate feedback.
Looking forward to your insights and recommendations.