Posted 27 February 2018, 11:22 pm EST
Hi manish,
I am using wijmo 5 with angular 2.I have same query. Preventdefault or stoppropagation is not working in flexsheet.
I used your code:
sheet.addEventListener(document.body,“keydown”, function (e) {
if (e.ctrlKey && (e.key === ‘z’ || e.key === ‘y’) && wijmo.contains(sheet.hostElement, e.target) ) {
e.preventDefault();
e.stopPropagation();
}
},true);
but these two functions are not preventing my function.Is there any solution
Actually i want to stop delete event when I click on delete key.I am getting the event when delete key is pressed,but the two functions are not stopping it from deleting the data.
With regards
Dharna Bakshi