[GH #5737] Handsontable restrict selectionlayerlevel to single

Hi

I have allowed selection mode to multiple.

I want to restrict selectionlayerlevel to single or when user selects same cell twice it should deselect instead of selecting on another layer.

I have noticed deselectCell method. This is helping only on selection mode is single. I can see a complex way of handling this by comparing index range and remove selected cell. If there is any direct way to achieve my goal that will be helpful.

Thanks
SJ

Hey @sudhakar.jothilingam

I want to restrict selectionlayerlevel to single

I was also thinking about adding those possibilities Set up additional selectionMode for range of cells · Issue #5737 · handsontable/handsontable · GitHub but unfortunately this hasn’t been added yet.

Nevetheless, I will update you as soon as we get this done.