Unable to deselect blockselection

Hi,

Unable to deselect blockselection; while applying selection to available rows. only outside click is working.

Ref: dhtmlx.com/docs/products/dht … tion.html#

I personnaly had an keyup observe event on the ‘escape key’. Therefore when the user presses on the ‘escape’ key, it deselects the selection:

I did it like this:

document.observe(‘keyup’, clearGridSelection);

function clearGridSelection(event){
if (event.keyCode == 27){
mygrid.enableBlockSelection(false);
mygrid.enableBlockSelection(true);
}
}