This is started happening recently on my project, so I created a fresh project using vue cli 2. I have not added any this else
In App.vue I have added 3 event listeners in mounted function.
window.addEventListener("keydown", () => {
console.log("Key down");
})
window.addEventListener('keyup', () => {
console.log("Key up");
})
window.addEventListener("keypress", () => {
console.log("Key press");
})
This above code prints all the events on Firefox and Safari, but not in chrome. It also works in chrome incognito but not in normal mode.
Also this is only happening on mac machine.
Also this only occurs when I am using vue
If i create a standalone html file the code return all the 3 events.
Any debugging idea is also appreciated.