ngx-select-ex icon indicating copy to clipboard operation
ngx-select-ex copied to clipboard

keyboardevent-code is not supported in IE due to which key navigation does not work

Open ghost opened this issue 6 years ago • 1 comments

Referring: https://caniuse.com/#feat=keyboardevent-code, IE lack keyboardevent-code support yet.

Solution - tried using: let code1 = ''; if (!event.code) { if (event.keyCode) { if (event.keyCode === 40) { code1 = 'ArrowDown'; } else if (event.keyCode === 38) { code1 = 'ArrowUp'; } } } else { code1 = event.code; }

So need fixes or if poly-fill can be used. Please let me know, if I can raise a PR for the same.

ghost avatar Mar 05 '19 00:03 ghost

I found out this polyfill here helps: https://github.com/inexorabletash/polyfill/blob/master/keyboard.md

platzhersh avatar Aug 15 '19 12:08 platzhersh