Skip to content

Commit 61be342

Browse files
author
Morten Sørvig
committed
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 <[email protected]> Reviewed-by: Even Oscar Andersen <[email protected]>
1 parent 09805f3 commit 61be342

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/platforms/wasm/qwasminputcontext.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ QWasmInputContext::QWasmInputContext()
246246
m_inputElement = document.call<emscripten::val>("createElement", std::string("input"));
247247
m_inputElement.set("type", "text");
248248
m_inputElement.set("contenteditable","true");
249+
m_inputElement.call<void>("setAttribute", std::string("aria-hidden"), std::string("true"));
249250

250251
m_inputElement["style"].set("position", "absolute");
251252
m_inputElement["style"].set("left", 0);

0 commit comments

Comments
 (0)