Docs: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
|load | |load | ||
|w.emit("clientLoaded"); | |w.emit("clientLoaded"); | ||
|When the window is loaded, the client | |When the window is loaded, the client emits a "client loaded" event. This is currently not utilized. | ||
| | | | ||
|<syntaxhighlight lang="javascript" line="1" start="187"> | |<syntaxhighlight lang="javascript" line="1" start="187"> | ||
Line 80: | Line 80: | ||
* event_keydown | * event_keydown | ||
| | | | ||
* Determines if regionSelect function should start. | |||
* Determines if the user is trying to copy a character at the cursor or mouse position. | |||
* Determines if the user is trying to copy a color or background color at the mouse position. | |||
* Handles keydown events for zooming, arrows, erasing, tabbing, esc, and typing. | |||
| | | | ||
|<syntaxhighlight lang="javascript" line="1" start="525"> | |<syntaxhighlight lang="javascript" line="1" start="525"> | ||
Line 94: | Line 98: | ||
|key up | |key up | ||
|event_keyup | |event_keyup | ||
|Emits a "keyUp" event whenever a key is released. | |||
| | | | ||
|<syntaxhighlight lang="javascript" line="1" start="2957"> | |||
|<syntaxhighlight lang="javascript" line="1"> | function event_keyup(e) { | ||
w.emit("keyUp", e); | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- |