Skip to content

Conversation

pommfresser
Copy link
Contributor

As the navigation in text fields in elicitation forms is difficult, I implemented, similar to multiline mode, a text navigation mode for elicitation forms. With CTRL-T, it's possible to toggle between text navigation and field navigation mode. Field navigation mode represents the already implemented key bindings, text navigation modes allows you to use the arrow keys to navigate inside fields.
The toolbar is quite long now and hasn't a good indicator which mode is currently used. I am open for good ideas.
If you like the idea, you can merge this pull request, else I'm fine with closing it.

Implement text navigation mode to enable usage of arrow keys in text
fields as well as using them to focus previous/ next field.
@pommfresser pommfresser force-pushed the feat/elicitation-add-text-navigation-mode branch from f8675c0 to d31b4ff Compare October 19, 2025 18:11
@evalstate
Copy link
Owner

Definitely a fan of the mode, agree with the Toolbar; I do wonder how discoverable this is for the average user? I guess looking at it, only submits on the buttons anyway. Wonder if @chughtapan has thoughts as they worked on this too.

@chughtapan
Copy link
Contributor

Definitely seems like a good idea to me if we keep the current navigation mode as the default and add the text mode as an optional feature.

The point about discovery is valid, and I'm not sure how best to address that, but the feature itself is worthwhile imo.

self.multiline_fields.add(field_name)
break

# Ctrl+J submits in text navigation mode (equivalent to enter in field navigation mode)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can get rid of this completely now? Submit should only work in the text field navigation mode?

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.

3 participants