How to choose ListView items with a single mouse click?

Hi,

I’m trying to use the ListView UIElement to show a list of actions. I would like users to be able to choose an action with a single mouse click, but by default, ListView only triggers onItemsChosen on double-click.

Is there anyway to trigger onItemsChosen with a single mouse click?

Thanks

Hi, “chosen” basically means that the selection is being submitted. A single click does not submit the selection, it changes it. In your case, you might want to monitor onSelectionChange instead.

Thanks!
What I’m looking for is a way to set single click to choose the option. The keyboard navigation also notifies of a selection change (as it should), but I’d like users to be able to navigate with the keyboard and either KeyDown return or single click to choose the option.

This is also what I’d expect to happen based on the rest of the interface.

For now I implemented it myself, but was wondering if an option already exists.

Thanks

I’d also like to know.
selectionChanged does not trigger with a mouse click on List View of Button in Input System 1.7.0

1 Like