wasm: call "focus" on window, not canvas
This is necessary to have correct focus handling on webassembly/ubuntu without this change tabbing from text input to f.ex a button would not work. Fixes: QTBUG-136562 Change-Id: I78eaa6202d8bdb87b1195d5c38a3f73570a49c90 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
This commit is contained in:
parent
304089b6da
commit
845aa1e9d1
@ -326,9 +326,10 @@ void QWasmInputContext::updateInputElement()
|
||||
m_inputElement["style"].set("height", "1px");
|
||||
m_inputElement.set("value", "");
|
||||
|
||||
m_inputElement.call<void>("blur");
|
||||
if (focusWindow && focusWindow->handle())
|
||||
((QWasmWindow *)(focusWindow->handle()))->focus();
|
||||
else
|
||||
m_inputElement.call<void>("blur");
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user