mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 00:39:38 +03:00
[PR #647] [MERGED] feat: auto-focus on the login buttons #865
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/647
Author: @ItalyPaleAle
Created: 6/10/2025
Status: ✅ Merged
Merged: 6/10/2025
Merged by: @stonith404
Base:
main← Head:autofocus📝 Commits (2)
7d565f4feat: auto-focus on the login buttons314ffe3Merge branch 'main' into autofocus📊 Changes
3 files changed (+25 additions, -8 deletions)
View changed files
📝
frontend/src/lib/components/ui/button/button.svelte(+11 -0)📝
frontend/src/routes/authorize/+page.svelte(+11 -5)📝
frontend/src/routes/login/+page.svelte(+3 -3)📄 Description
On the /login and /authorize views, use auto-focus to make the "Login" and "Sign In" buttons (respectively) automatically focused
This helps when doing keyboard navigation. For example, imagine refreshing the page with CMD/CTRL+R, being sent to Pocket ID to re-authorize an app after a session expired. Your fingers were on the keyboard, but now you need to use your mouse to select "Sign In" or "Login" (or press tab multiple times and pay attention to where the focus is), and then go back to the fingerprint sensor to make the passkey work.
By setting auto-focus, you can just hit enter and go straight to the passkey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.