Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

[ipywidgets]: changing SelectMultiple behavior #119

Closed
akhmerov opened this issue Jan 8, 2017 · 3 comments
Closed

[ipywidgets]: changing SelectMultiple behavior #119

akhmerov opened this issue Jan 8, 2017 · 3 comments

Comments

@akhmerov
Copy link
Member

akhmerov commented Jan 8, 2017

Current SelectMultiple has the following UI:

  • click: deselect all, select clicked entry
  • ctrl+click: toggle selection of clicked entry
  • shift+click: select range with start somewhere (?), and end at the clicked entry.

How can I interchange the behavior of click and ctrl+click, so that the click always toggles the entry?

Come to think of it, I don't even need the current click behavior at all. Plus since the idea of the widget is to allow selection of multiple entries, maybe toggle selection should be the default click behavior anyway?

@takluyver
Copy link
Member

@SylvainCorlay

@jasongrout
Copy link
Member

The SelectMultiple is implemented using the standard native listbox control for the platform. The nice thing about this is that it is consistent with every other native listbox control. If we want to experiment with another interaction (and your idea sounds great for some applications), I would suggest that we make a custom control with those behaviors.

@akhmerov
Copy link
Member Author

Thanks for the clarification.

In the end I will probably follow this solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants