From ee31a24940b56314516b1f8ffd2b265eba216b8b Mon Sep 17 00:00:00 2001 From: Daniel Hammerschmidt Date: Wed, 12 Nov 2025 01:55:48 +0100 Subject: [PATCH 1/2] Use fallback clipboard panel if permission is denied --- app/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui.js b/app/ui.js index bbdea60d3..9bd72a2e7 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1782,11 +1782,11 @@ const UI = { updateClipboard() { browserAsyncClipboardSupport() .then((support) => { - if (support === 'unsupported') { + if (support === 'unsupported' || support === 'denied') { // Use fallback clipboard panel return; } - if (support === 'denied' || support === 'available') { + if (support === 'available') { UI.closeClipboardPanel(); document.getElementById('noVNC_clipboard_button') .classList.add('noVNC_hidden'); From c0be1b83d77dd94d998bcc04ffaeec2b374ac0f7 Mon Sep 17 00:00:00 2001 From: Daniel Hammerschmidt Date: Wed, 12 Nov 2025 01:57:17 +0100 Subject: [PATCH 2/2] Add note to event RFB::clipboard documentation --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index c1f6fac91..acaae6f68 100644 --- a/docs/API.md +++ b/docs/API.md @@ -94,7 +94,7 @@ protocol stream. [`clipboard`](#clipboard) - The `clipboard` event is fired when clipboard data is received from - the server. + the server (only if support for the [Clipboard module](API-internal.md#11-module-list) is not available). [`clippingviewport`](#clippingviewport) - The `clippingviewport` event is fired when `RFB.clippingViewport` is