Skip to content

GUI: Select tag Enter key behavior #38

@e3rd

Description

@e3rd

By default, enter submits the form.

But when a select tag form is focused and the focus is above an item that is not selected, make it the first enter select the item and the second submit the form.

Example. Running the code will raise a window.

$ mininterface select one two three
Image
  1. Hit Enter. 'one' gets selected
  2. Hit Enter again, the form is submitted.

Here is the SelectTag handler:

wrapper = SelectInputWrapper(master, tag, grid_info, widget, adaptor, len(fform) == 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions