• 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


Well-known member
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?



XenForo developer
Staff member
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).