summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2025-04-01 14:57:26 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2025-04-23 12:48:00 +0000
commit61be342d0293f03ea7174f44bf58950ef82f5d05 (patch)
tree3e4e2f2af742354fa6a8e869a1f56eea4bf2ce37 /src
parent09805f355c7eb2ece70bcc58e731433980e31126 (diff)
wasm: set aria-hidden for input context element
This element is not a part of the accessibility implementation, and should not be visible to the screen reader. Change-Id: Ifb8c404f7dd5a916cd42856b1f6b4529f2fb3ae0 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io> Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/wasm/qwasminputcontext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasminputcontext.cpp b/src/plugins/platforms/wasm/qwasminputcontext.cpp
index b09cef50839..2689b0c1c7d 100644
--- a/src/plugins/platforms/wasm/qwasminputcontext.cpp
+++ b/src/plugins/platforms/wasm/qwasminputcontext.cpp
@@ -246,6 +246,7 @@ QWasmInputContext::QWasmInputContext()
m_inputElement = document.call<emscripten::val>("createElement", std::string("input"));
m_inputElement.set("type", "text");
m_inputElement.set("contenteditable","true");
+ m_inputElement.call<void>("setAttribute", std::string("aria-hidden"), std::string("true"));
m_inputElement["style"].set("position", "absolute");
m_inputElement["style"].set("left", 0);