Hi, After selecting a range of cells, If we try to unselect few of them (by pressing ctrl and selecting the cells we want to unselect), it is still considering them in the selection. I need to unselect this value.
For example,
Select a range of cells via keypad/mouse (let’s say A1: B5)
Unselect one cell (say B1), by pressing ctrl and selecting B1
Call the hot.getSelected() method and print in console
It returns [[0, 0, 4, 1],
[0, 1, 0, 1]]
It considers B1 to be selected twice.
Thanks for checking back in. I appreciate you following up on this.
At the moment, this feature hasn’t been delivered yet. Unfortunately, there’s still no official API support for deselecting individual cells. The only available option remains deselecting a full range at once.
I know this isn’t the answer you were hoping for, and I understand how limiting this can be depending on your use case. The feedback is noted, though, and requests like yours help us prioritize future improvements.
If you’re open to it, I’d be happy to better understand how you’re trying to use this functionality. That context can be really helpful when discussing potential enhancements internally.
Thanks again for reaching out, and please let me know if there’s anything else I can help with in the meantime.