Skip to content

Multiple focused Input()s #942

Answered by AlexKordic
AlexKordic asked this question in Q&A
Discussion options

You must be logged in to vote

Text Input Menu with Cursor Management and Event Handling

This solution creates an editable menu with multiple Input() fields that allow for simultaneous text line editing. The main components include a menu container to hold the inputs, cursor management for each Input(), and custom event handling for keyboard navigation.

The menu is a Container::Vertical element that holds each Input() element as a child. This setup organizes the input fields in a vertical stack, making it easy to navigate through multiple editable lines.

Cursor management

Each Input() field has a customizable cursor position using an InputOption object.

A shared cursor_position variable, initialized as an int, stores t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AlexKordic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant