[GH #4869] Multiple select mode and finishEditing ctrlDown = true

Tags: #<Tag:0x00007efc64988cc8> #<Tag:0x00007efc64988b10>

I would like to multi select non adjance cells and save value to call.

Currently I set selectionMode: 'multiple' and create custom editor with finishEditing like this

finishEditing(restoreOriginalValue: boolean, ctrlDown: boolean, callback: Function) {
super.finishEditing(restoreOriginalValue, true, callback);
}

The documentation says

“If ctrlDown is set to true the new value will be set to all selected cells.”

However it only save the value to the last selected cells. What did I do wrong?

I think that this part of the editor creation did not assume that in the future we’d allow selecting more areas than one. That’s a good catch.

So can we have a bug ticket open and an estimated fix date? Currently I have to codea workaround in the beforeChange hook to append to the changes.

Hey @steo

I do not say that this is a bug. It’s more like a lack in the functionality.

Here’s the topic created by the developer who added the multi-selection fuctionality https://github.com/handsontable/handsontable/issues/4869. It already covers the subject so I’ve allowed myself to close https://github.com/handsontable/handsontable/issues/6253

Thanks, the ticket is exactly what I wanted.