How to get event.target after keypress?
I have an iframe with designMode="on" and have to listen to keypress event and report on what element was keypressed (for example div, or span and so on). But e.target.nodeName show only 'html'
here is example:
http://jsfiddle.net/fJLTG/
When I click on word "Hello" - I get "div" - it's correct, but when I keypress on it - i get "html" instead "div". How to fix this?