Skip to content

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Jan 11, 2026

Text input components were losing focus every frame because they failed to register with the field tracking system. The tracking system clears ctx->focused_edit at frame end for unregistered buffers.


Summary by cubic

Fixed focus loss in text inputs by registering buffers with the per-frame tracking system. Textfield and search bar now keep focus while typing across frames.

  • Bug Fixes
    • Register text fields via iui_register_textfield in iui_textfield_with_selection and iui_search_bar_ex.
    • Auto-focus and register search->query in iui_search_view_begin.
    • Prevent ctx->focused_edit from being cleared for active inputs.

Written for commit 41c4b76. Summary will update on new commits.

Text input components were losing focus every frame because they
failed to register with the field tracking system. The tracking
system clears ctx->focused_edit at frame end for unregistered
buffers.
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

@jserv jserv merged commit 8e66b98 into main Jan 11, 2026
12 checks passed
@jserv jserv deleted the fix-textarea branch January 11, 2026 07:15
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