Skip to content
Discussion options

You must be logged in to vote

Looking at this a bit more now, the first thing I'd suggest is that, rather than hooking into the key event to turn Enter into the "move to next field" method, it might make a bit more sense to use the input submitted event. Possibly not the most elegant way, but a quick first play here suggests something like this perhaps:

    def on_input_submitted(self, event: Input.Submitted ) -> None:
        next_input = {
            "field_label_printer": "client_id",
            "field_client_id": "client_name",
            "field_client_name": "alias",
            "field_alias": "tests",
            "field_tests": "date",
            "field_date": "quantity",
            "field_quantity": "label…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@davep
Comment options

@apeaveysf
Comment options

@davep
Comment options

Answer selected by davep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants