Hello everyone,

Let's suppose an element has some attached functions on keydown, which where added using the addEventListener function.

I want to add my own function to be executed but move its execution to the top. In other words I want my function to be executed before any other.

Changing the source and adding my own addEventListener first is not an option :/

Has anyone faced anything a similar issue? Do you have any ideas on how to solve it?

I would like to mention that ANY solution is acceptable even if it requires additional JS frameworks etc.

Thanks in advance