Skip to content

[QoL] Keyboard autofocus - #28

Merged
j0code merged 2 commits into
mainfrom
feature/autofocus
Jul 11, 2026
Merged

[QoL] Keyboard autofocus#28
j0code merged 2 commits into
mainfrom
feature/autofocus

Conversation

@j0code

@j0code j0code commented May 26, 2026

Copy link
Copy Markdown
Owner

Autofocuses

  • chat input or first form input element on view switch / modal open/switch
  • chat input or first form input element that takes text on keyboard input
    unless another input, textfield or contenteditable div is already focused

Modals take priority over views.

Behavior can be customized for any view or form by overriding get defaultInput or get defaultTextInput.

@j0code j0code self-assigned this May 26, 2026
@j0code j0code added the enhancement New feature or request label May 26, 2026
@j0code
j0code requested a review from cfpwastaken May 26, 2026 16:27
Comment thread client/src/comps/App.ts
@cfpwastaken

Copy link
Copy Markdown
Collaborator

This can be merged

@j0code
j0code merged commit ed518de into main Jul 11, 2026
5 checks passed
@j0code
j0code deleted the feature/autofocus branch July 11, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants