OnCharacter: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|type = event | |type = event | ||
|name = onCharacter | |name = onCharacter | ||
|usage = a character key is pressed down | |usage = a character key is pressed down. If the character key is held down, the event is triggered repeatedly. | ||
|callbackParameters = Event event, string text | |callbackParameters = Event event, string text | ||
|parameter1 = string text The character typed. | |parameter1 = string text The character typed. | ||
|cancellable = false | |cancellable = false | ||
}} | }} |
Revision as of 22:09, 11 March 2021
Event
Client Only
Online and Offline
Not Cancellable
Available since Client 1.0.0
function(Event event, string text)
The onCharacter event is invoked when a character key is pressed down. If the character key is held down, the event is triggered repeatedly.
Parameters
1) | Event | event | The event object for this event. |
2) | string | text | The character typed. |
Attributes
const | This event cannot be cancelled. |
Notes
There aren't any notes for this event.
Examples
There aren't any examples for this event.
Compatibility
There isn't any compatibility information for this event.
Related
Client Related
OnCharacter
OnKeyDown
OnKeyUp