-
Notifications
You must be signed in to change notification settings - Fork 2
KeyboardEvent
Benedict Allen edited this page Nov 15, 2015
·
3 revisions
The KeyboardEvent is used to pass key (up and down) events to Sheets.
Extends Event
Event creation is handled internally by Application.
KeyboardEvent( Event enum event, string key, table held )KeyboardEvent.key - string
The key of the event.
boolean matches = KeyboardEvent:matches( string keycombo )Returns whether the event matches the key combination given.
boolean held = KeyboardEvent:isHeld( string key )Returns whether key was held at the time the event was fired.
Key combinations should be formatted as such: "key1-key2-key3". In order for it to match, the keys must have been pressed in that order. To get around this, you can use isHeld() to check each modifier individually.
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException