Simple case of stopImmediatePropagation() is not working in IE

172 Views Asked by At

Here is a small JSFiddle: http://jsfiddle.net/Lotchi/965eLa7g/stopImmediatePropagation() Chrome VS IE I'm using a library called Handsontable to manage a table as an excelsheet.

In my example, I just want to avoid my user to use Delete and Backspace key of the keyboard in a row for which one of the column has a specific value.

The example is working fine in Chrome but not in IE. I already find some comment about this in the forum but no one is related to the keybord key, always about clicking.

Can you please advise?

1

There are 1 best solutions below

0
On

The issue was somewhere else in the code. Indeed a condition was set on the event key value which is not the same in each browser. ("DELETE" vs "DEL)

See here a example which is working for delete button in Chrome and IE http://jsfiddle.net/on9358kw/solution