d3lm / ngx-drag-to-select

A lightweight, fast, configurable and reactive drag-to-select component for Angular 10 and beyond
https://www.npmjs.com/package/ngx-drag-to-select
MIT License
293 stars 64 forks source link

Cannot disable ctrl and shift keys to prevent select? #165

Open gokanovic opened 2 years ago

gokanovic commented 2 years ago

I want to disable the ctrl and shift key to prevent select. As far as I know that is not possible or is it?

d3lm commented 2 years ago

How do you mean ctrl + shift, that shortcut is not implemented, see

image

I am afraid that without a reproducable and a list of steps there's not much I can do.

gokanovic commented 2 years ago

I just want disable ctrl key and shift key. I don't want that the user is going to use these keys to make a selection. I want a single selection mode with no use of ctrl or shift keys

d3lm commented 2 years ago

Have you checked the live page and played with the options? This does exactly what you want IIUC

image
gokanovic commented 2 years ago

image

I think you really don't understand me. In live demo, if you uncheck "select mode" there, you can still make multiple selections by holding the ctrl key together. And that's what I don't want. I want to turn this off. As far as I can see that is not possible.

d3lm commented 2 years ago

Yep, that is currently not supported. With CTRL or CMD (on Mac) you toggle a selection. There is currently not a single selection mode.