Skip to content

Add autofocus for jwt token input#862

Merged
javiert-okta merged 8 commits into
masterfrom
auto-focus-token-input
Jul 22, 2025
Merged

Add autofocus for jwt token input#862
javiert-okta merged 8 commits into
masterfrom
auto-focus-token-input

Conversation

@javiert-okta

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

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

@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

christiansamaniego-okta commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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?

@github-actions

Copy link
Copy Markdown

@christiansamaniego-okta christiansamaniego-okta left a comment

Copy link
Copy Markdown
Contributor

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