0

I spent hours debugging an issue that keydown event handler isn't triggered as expected. It turned out that the root cause is a focused HTMLElement is deleted and re-created. And in IE it seems the whole page lost focus when the focus element is deleted.

I had a hard time figuring out which element is handling the keyboard event, it will be much easier if there is a good tool to help. Is there an easy way to find out which HTML element is actually receiving the keyboard event?

I saw one of the answer here is detecting the event handler by injecting more javascript code, but is it possible to do this with tools directly supported by browser's debugger?

Community
  • 1
  • 1
Fangliang Xue
  • 364
  • 2
  • 16

1 Answers1

0

in IE keydown event will work

see http://unixpapa.com/js/key.html

Satish Sharma
  • 9,547
  • 6
  • 29
  • 51