Add cut and paste support.
- A textarea below the VNC area represents the state of the current VNC clipboard. If there is a server cut event, the textarea will be updated. If the user updates the contents of the textarea, the new data will be sent as a client paste (cut) event. - One important change was to detect if the clipboard is focused and allow the user to type in the clipboard instead of in the VNC area.
This commit is contained in:
9
vnc.html
9
vnc.html
@@ -16,6 +16,15 @@
|
||||
style="border-style: dotted; border-width: 1px;">
|
||||
Canvas not supported.
|
||||
</canvas>
|
||||
|
||||
<br><br>
|
||||
VNC Clipboard:
|
||||
<input id='clearButton' type="button" value="Clear"
|
||||
onclick="RFB.clipboardClear();"><br>
|
||||
<textarea id="clipboard" style="font-size:9;" cols=80 rows=5
|
||||
onchange="RFB.clipboardPasteFrom();"
|
||||
onfocus="RFB.clipboardFocus=true;"
|
||||
onblur="RFB.clipboardFocus=false;"></textarea>
|
||||
</body>
|
||||
|
||||
<script src="include/mootools.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user