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>
This commit is contained in:
parent
09805f355c
commit
61be342d02
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user