therendus
Posts: 0
Joined: Mon Jun 23, 2014 10:28 pm

How to access the event object in key event handler

How to access the event object and it's keyCode attribute inside a key event handler ?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to access the event object in key event handler

Hi Daniel,

Please use following code:

pre

var event = arguments[0];

//Here you can use event object.
console.log(event.keyCode);

/pre

http://prntscr.com/3vucev/direct

Regards.

Return to “Issues”