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:
parent
3c46f2ef96
commit
bc2c963510
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user