wasm: Install cut/copy/paste handlers on window for not chrome

This is how it used to be.
More changes are needed to fix cut/copy/paste.

Change-Id: Ib5073b82a568a391581f0b4d8369eaab57fd8f19
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Even Oscar Andersen 2025-04-28 12:48:36 +02:00
parent 3c46f2ef96
commit bc2c963510

View File

@ -176,7 +176,7 @@ bool QWasmClipboard::hasClipboardApi()
bool QWasmClipboard::shouldInstallWindowEventHandlers()
{
// Chrome uses global handlers
return val::global("window")["chrome"].isUndefined() == false;
return val::global("window")["chrome"].isUndefined();
}
void QWasmClipboard::writeToClipboardApi()