PDA

View Full Version : Anybody know how to add listener to an "mousedown" event in the viewport?



yAdEs
8 Apr 2012, 3:52 AM
Anybody know how to add listener to an "mousedown" event in the viewport?
And I find that formpanel has a "focus" event in 4.1RC2 doc, but I can't use it, anybody have idea about this?

vietits
8 Apr 2012, 5:10 AM
viewport.getEl().on('mousedown', mousedownhandler)

yAdEs
8 Apr 2012, 6:32 AM
You great, vietits! Thanks again!