diff options
author | Morten Sørvig <[email protected]> | 2023-02-03 12:59:42 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <[email protected]> | 2023-02-03 18:49:04 +0000 |
commit | 79ffb2eb33f3e1d02c47a9b492c2c0d0545b9876 (patch) | |
tree | 0b32c958c8c3d412c8be5fe80c117df74fc85c6c /src/plugins/platforms/wasm/qwasmintegration.cpp | |
parent | 192291bb080bd9f1fa33a77e06b06aaf8bc8bc60 (diff) |
wasm: set contenteditable on canvas
We don't want to make the top-level screen contenteditable,
since that interferes with accessibility. Instead, make
the canvas contenteditable and install clipboard event
handlers there.
Also move follow-up settings which counters some of the
effects contenteditable (outline: none and inputmode: none),
and move aria-hidden.
Change-Id: Ibe73d8d097acd948ba8920c781a2003db0a14f3d
Reviewed-by: Morten Johan Sørvig <[email protected]>
(cherry picked from commit 2443f2be07607e44ec483278873702eb0f57ab26)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.cpp')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmintegration.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp index 148810ba8bd..ab04a10726a 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.cpp +++ b/src/plugins/platforms/wasm/qwasmintegration.cpp @@ -278,7 +278,6 @@ void QWasmIntegration::addScreen(const emscripten::val &element) { QWasmScreen *screen = new QWasmScreen(element); m_screens.append(qMakePair(element, screen)); - m_clipboard->installEventHandlers(element); QWindowSystemInterface::handleScreenAdded(screen); } |