chosen icon indicating copy to clipboard operation
chosen copied to clipboard

Multiselect with shift key

Open brechtvhb opened this issue 13 years ago • 13 comments

The multi select should allow us to select more then items at once by holding the shift key, like the regular non enhanced version does.

brechtvhb avatar Aug 02 '11 11:08 brechtvhb

Related to #21

stof avatar Nov 29 '12 00:11 stof

Hi, I see that this issue has 2 years old. There was any update on this shift request?

Thanks!

laantorchaweb avatar Sep 17 '13 16:09 laantorchaweb

Nobody has worked on it yet. However, contributions are of course welcome if you want to dedicate some time to make it happen.

stof avatar Sep 17 '13 16:09 stof

By pressing CMD or CTRL you can already select multiple options.

koenpunt avatar Sep 17 '13 23:09 koenpunt

I know, but is not the same requirement. I have a large admin system working with chosen and the client asked for this feature, he want to select one item while pressing shift and select all the item between there and the last clicked element. Like the normal multi select element.

I just forked the repo and made the changes to add this feature, I'm testing now and will make a pull request soon.

laantorchaweb avatar Sep 18 '13 01:09 laantorchaweb

Hi - I was wondering if any other progresses were made on this? We're seriously looking into using Chosen as the core library for handling lists in our web interface at our work, but the inability to select multiple options (in a row) with shift is really making it difficult to go on ahead with Chosen.

ghost avatar Mar 13 '14 23:03 ghost

@hongjos I think that this functionality never was merged, but if you see my commit before your comment it's working as expected.

laantorchaweb avatar Mar 14 '14 00:03 laantorchaweb

+1 for this feature, i've many requests about this.

Also for a select all / deselect all using shift+a / esc

casph avatar Jul 30 '15 14:07 casph

I'm working on a pull request right now that allows user shift click and highlight multiple. Then the second click adds the highlighted items. Has a pull request for this type of thing been submitted? Is there even a possibility of this functionality being pulled in?

patawa91 avatar Aug 21 '15 14:08 patawa91

Has a pull request for this type of thing been submitted?

Yup, there's one at https://github.com/harvesthq/chosen/pull/1563

kevin-brown avatar Aug 21 '15 14:08 kevin-brown

be aware, my PR for adding multiselection holding shift key is from 2013, I had rebased the code and updated it last week so it's ok to merge but I don't think that this will happen any time soon. This issue is from 2011 and there are other issues asking the same thing. Feel free to improve the PR if you want.

laantorchaweb avatar Aug 21 '15 14:08 laantorchaweb

+1 for this feature

NeumannPSG avatar Aug 14 '17 13:08 NeumannPSG

+1 also for this

cahrens avatar Jun 17 '19 20:06 cahrens