summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2022-09-09 16:03:49 +0200
committerSamuel Mannehed <samuel@cendio.se>2022-09-09 16:03:49 +0200
commit69e0f0f5db86302944f7d8f1e80b2b641f06c61b (patch)
treef4761f8adfef86b4d746de8430a969306014ebef
parentedc7520e273fa1b2cbd0abac6a9fe2c1bd2680d5 (diff)
downloadnovnc-69e0f0f5db86302944f7d8f1e80b2b641f06c61b.tar.gz
Remove unnecessary clipboard clear button
This button fills no real purpose. It's easy to mark everything and delete with either "Ctrl + A -> Delete" or, on touch devices, "long press -> mark everything -> Delete".
-rw-r--r--app/ui.js7
-rw-r--r--vnc.html3
2 files changed, 0 insertions, 10 deletions
diff --git a/app/ui.js b/app/ui.js
index fe62ede..4c9342a 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -337,8 +337,6 @@ const UI = {
.addEventListener('click', UI.toggleClipboardPanel);
document.getElementById("noVNC_clipboard_text")
.addEventListener('change', UI.clipboardSend);
- document.getElementById("noVNC_clipboard_clear_button")
- .addEventListener('click', UI.clipboardClear);
},
// Add a call to save settings when the element changes,
@@ -968,11 +966,6 @@ const UI = {
Log.Debug("<< UI.clipboardReceive");
},
- clipboardClear() {
- document.getElementById('noVNC_clipboard_text').value = "";
- UI.rfb.clipboardPasteFrom("");
- },
-
clipboardSend() {
const text = document.getElementById('noVNC_clipboard_text').value;
Log.Debug(">> UI.clipboardSend: " + text.substr(0, 40) + "...");
diff --git a/vnc.html b/vnc.html
index 168b5b9..9128c11 100644
--- a/vnc.html
+++ b/vnc.html
@@ -142,9 +142,6 @@
<img alt="" src="app/images/clipboard.svg"> Clipboard
</div>
<textarea id="noVNC_clipboard_text" rows=5></textarea>
- <br>
- <input id="noVNC_clipboard_clear_button" type="button"
- value="Clear" class="noVNC_submit">
</div>
</div>