I’ve been following a tutorial in which the following line was written :
window.addEventListener('keydown',dosomething())
I went to official window api documentation and looked through the list of available events but keydown was not present in there.
so an event listener that isn’t listed in the documentation is working; am I missing something or is the documentation out of date ? and if yes, where can one find the full list of available event listeners that can be used ?
You need to sign in to view this answers
Leave feedback about this