PDA

View Full Version : Get Currently Focused Component



maslofer
6 Jun 2012, 4:55 PM
Hi,

Is there a way to get the currently focused component without enabling the FocusManager. I would like to have key bindings for certain keys like the delete key but disable them if a text input is focused.

Is this possible?

Thank you

scottmartin
7 Jun 2012, 12:42 PM
You can use document.activeElement

Regards,
Scott.