I have the following JavaScript code:
document.addEventListener('keydown', function (event) {
console.log('running keydown event listner func!');
console.log(event.ctrlKey);
console.log(event.key);
});
When I press Ctrl + k I see this in the console:
However, when I press Ctrl + e I see this:
As you can see, the e
is totally ignored. Why is that? Is it me? Or is it a browser thing that I’m unaware of?