@@ -18,17 +18,19 @@ keysym values.
18
18
* __ Display__ (core/display.js): Efficient 2D rendering abstraction
19
19
layered on the HTML5 canvas element.
20
20
21
+ * __ Clipboard__ (core/clipboard.js): Clipboard event handler.
22
+
21
23
* __ Websock__ (core/websock.js): Websock client from websockify
22
24
with transparent binary data support.
23
25
[ Websock API] ( https://github.com/novnc/websockify-js/wiki/websock.js ) wiki page.
24
26
25
27
26
28
## 1.2 Callbacks
27
29
28
- For the Mouse, Keyboard and Display objects the callback functions are
29
- assigned to configuration attributes, just as for the RFB object. The
30
- WebSock module has a method named 'on' that takes two parameters: the
31
- callback event name, and the callback function.
30
+ For the Mouse, Keyboard, Display, and Clipboard objects, the callback
31
+ functions are assigned to configuration attributes, just as for the RFB
32
+ object. The WebSock module has a method named 'on' that takes two
33
+ parameters: the callback event name, and the callback function.
32
34
33
35
## 2. Modules
34
36
81
83
| blitImage | (x, y, width, height, arr, offset, from_queue) | Blit pixels (of R,G,B,A) to the display
82
84
| drawImage | (img, x, y) | Draw image and track damage
83
85
| autoscale | (containerWidth, containerHeight) | Scale the display
86
+
87
+ ## 2.3 Clipboard module
88
+
89
+ ### 2.3.1 Configuration attributes
90
+
91
+ None
92
+
93
+ ### 2.3.2 Methods
94
+
95
+ | name | parameters | description
96
+ | ------------------ | ----------------- | ------------
97
+ | writeClipboard | (text) | An async write text to clipboard
98
+ | grab | () | Begin capturing clipboard events
99
+ | ungrab | () | Stop capturing clipboard events
100
+
101
+ ### 2.3.3 Callbacks
102
+
103
+ | name | parameters | description
104
+ | ------- | ---------- | ------------
105
+ | onRead | (text) | Called following a target focus event and an async clipboard read
0 commit comments