fix: restore RDP clipboard paste across browsers (#1331)

This commit is contained in:
ZacharyZcR
2026-08-25 00:56:26 +08:00
committed by GitHub
parent 81d79cc89b
commit dc47c4ca86
3 changed files with 28 additions and 49 deletions
@@ -13,10 +13,6 @@ export interface GuacamoleClipboardClient {
sendKeyEvent(pressed: number, keysym: number): void;
}
export function isFirefoxBrowser(userAgent = navigator.userAgent): boolean {
return /(?:Firefox|FxiOS)\//.test(userAgent);
}
export function isPasteShortcut(
event: Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey">,
): boolean {