Skip to content

ComboBoxColumn/TimeColumns are unintuitive when it comes to "Enter" #250

@AlexanderBlackman

Description

@AlexanderBlackman

The tableview is torn between two systems. Tab/Enter to move editing and the base behaviour of WinUI 3 controls.

For most columns, pressing "Enter" ends editing in the cell and starts editing the cell below it.
For ComboboxColumn, the first "Enter" after "F2" opens the dropdown menu, the second changes the value to the selected ComboBoxItem, whilst keeping the ComboBox in edit mode, so it cycles through the ComboBoxItem when "Up"/"Down" are pressed. They'd need to press "Escape" to end editing mode, and "Down" to move to the below cell. ("Tab" still works to move to the right)

TimeColumns also behave like this, though "Up/Down" don't change the value fortunately.

I can see two solutions.

  1. First "Enter" opens dropdown, second selects, third moves editing to the below cell. (I can do this for you)
  2. Disable "Enter" to open the dropdown ("Space" works by default too, and is already used to toggle checkboxen/ToggleButton), "Enter" will still close the dropdown. Pressing enter whilst the dropdown is closed moves editing downwards.

Which one do you think is best?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions