diff options
author | Samuel Mannehed <samuel@cendio.se> | 2022-09-09 16:03:49 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2022-09-09 16:03:49 +0200 |
commit | 69e0f0f5db86302944f7d8f1e80b2b641f06c61b (patch) | |
tree | f4761f8adfef86b4d746de8430a969306014ebef | |
parent | edc7520e273fa1b2cbd0abac6a9fe2c1bd2680d5 (diff) | |
download | novnc-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.js | 7 | ||||
-rw-r--r-- | vnc.html | 3 |
2 files changed, 0 insertions, 10 deletions
@@ -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) + "..."); @@ -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> |