• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Detecting KeyUp and KeyPress

robdog

Well-known member
#1
So I have been creating a lot of click handlers as extensions to the main XF JS object, but is there a way to do this with a KEYUP or KEYPRESS event?

Thanks!
 

Mike

XenForo developer
Staff member
#2
You'd either not do that through our handler systems and just listen to the events directly or you'd do it through an element handler instead of a click handler (and setup the events there).