Widget handler: OnChar

Revision as of 11:31, 20 April 2007 by WoWWiki>ClemSnide (Note about Delete key in OnChar)

Widget handlers < OnChar

Description

Called whenever a character is typed into the EditBox by the user.

Arguments

arg1
The character that was typed

Note

This event handler is listed under UI Widgets other than EditBox, but I have no idea if it functions at all in anything besides an EditBox (given that without a widget that accepts characters, how can there be an OnChar handler?)

Comments

I found the hard way that the DELETE key is not trapped this way. Use OnTextChanged if you want to trap changed text rather than something being entered. -- ClemSnide 07:31, 20 April 2007 (EDT)