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
{{ message }}
Repository navigation
Commit e4fa91e
Browse filesBrowse the repository at this point in the historyBrowse files
fix: focus the right field when a form, popover or menu opens (#25)
## Summary
Whatever opens now puts keyboard focus where you'd type next.
| Opens | Before | Now |
| --- | --- | --- |
| Edit Display Name (Alt+Shift+N / Welcome menu) | focus stayed on the page | name field focused, prefilled with the current name and selected |
| Habit → Edit | stayed on the page | name field focused |
| Goal → comments | stayed on the page | comment field focused |
| Focus summary → edit session | stayed on the page | title field focused |
| Add Tag popover (Alt+Shift+T / click) | stayed on the page | "Create new tag" focused; Esc closes |
| Menu (Alt+M / click) | stayed on the button | first item focused; Esc closes and returns focus to the button |
Already correct and unchanged: Alt+G (goal), Alt+N on To-Dos/Goals/Habits/Tags/Boost, to-do inline edits, habit notes, new tags, dialogs and panels.
## Testing
- Lint, typecheck, unit tests and build pass.
- In the browser: Alt+Shift+N → name field focused with "Alex" selected, Esc closes; Alt+Shift+T → "Create new tag" focused, Esc closes; Alt+M → first menu item focused, Esc closes; Alt+G → goal field focused.
0 commit comments