Skip to content

Add autofocus for jwt token input #862

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

Merged
merged 8 commits into from
Jul 22, 2025
Merged

Conversation

javiert-okta
Copy link
Contributor

@javiert-okta javiert-okta commented Jul 16, 2025

This PR adds a new feature for the user to enable or disable autofocus on JWT input.
This helps users who have reported they need to switch between tabs constantly to copy/paste tokens and use the mouse for manually focusing the input.
The new feature is optional, meaning the logical focus order won't be affected if the user doesn't want to
Light teme:
image
Dark theme
image

Copy link

Copy link

@javiert-okta javiert-okta changed the title Add key binding for switching panels and enable autofocus on mount Add autofocus for jwt token input Jul 17, 2025
@christiansamaniego-okta
Copy link
Contributor

christiansamaniego-okta commented Jul 18, 2025

My main concern with this change is that the page doesn't follow a logical focus order. It might be an issue for accessibility or screen readers. @javiert-okta WDYT?

@javiert-okta
Copy link
Contributor Author

My main concern with this change is that the page doesn't follow a logical focus order. It might be an issue for accessibility or screen readers. @javiert-okta WDYT?

Thanks for bringing this up @christiansamaniego-okta ! In fact, this does change the logical focus order which can be a problem for folks using screen readers. I would suggest adding a check option that lets a user trigger this autofocus functionality only if they want to. Some sort of personal preference that can be saved in the local storage. WDYT?

Copy link

Copy link
Contributor

@christiansamaniego-okta christiansamaniego-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@javiert-okta javiert-okta merged commit f74b46a into master Jul 22, 2025
4 checks passed
@javiert-okta javiert-okta deleted the auto-focus-token-input branch July 22, 2025 17:30
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.

2 participants