You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After pressing enter in a searchbox or input, focus moves to the targeted element but it does not have focus outline. It seems that tabster does not consider Enter key as switching to keyboard navigation mode for input fields.
Expected Behavior
The focused element should have focus outline when using keyboard if the previous active element was input and user pressed enter key.
Similarly this will happen for contextmenu events as well if the user uses shift+f10 to open a context menu. However in this case we can make an educated guess since on windows using shift+f10 means that the button won't be 2 (right click). Test on
Chrome - value is -1
Edge - value is -1
Firefox - value is 0 (this could also be a garbage value since it means the user used main button to open a context menu)
Component
Utilities
Package version
9.55.0
React version
18.2.0
Environment
Current Behavior
After pressing enter in a searchbox or input, focus moves to the targeted element but it does not have focus outline. It seems that tabster does not consider Enter key as switching to keyboard navigation mode for input fields.
Expected Behavior
The focused element should have focus outline when using keyboard if the previous active element was input and user pressed enter key.
Reproduction
https://stackblitz.com/edit/ubivawfw?file=src%2Fexample.tsx
Steps to reproduce
Native inputs don't have the same problem and pressing Enter will trigger
:focus-visible
as demonstrated in this sandboxAre you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: