Updated some formatting

Updated formatting for object
This commit is contained in:
Robert Jelic
2022-10-20 21:05:29 +02:00
parent 4352d36831
commit ab72f244ed
42 changed files with 381 additions and 122 deletions

View File

@@ -1,5 +1,9 @@
# onKey
`onKey(self, event, key)`<br>
# Object - Event
## onKey
`onKey(self, event, key)`
The computercraft event which triggers this method is `key` and `char`.
Here is a example on how to add a onKey event to your frame:
@@ -19,4 +23,4 @@ function openSubFrame(self, event, key)
end
end
main:onKey(openSubFrame)
```
```