Revert "wasm: call "focus" on window, not canvas"

This reverts commit 845aa1e9d1c60ecff38cbb2d0e98414ac1d9cc68.

Reason for revert: This breaks cell phones and tablets on chrome

Change-Id: I832f5b0d4b690b45168d6a3368f82317e97829d2
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
This commit is contained in:
Even Oscar Andersen 2025-05-03 04:53:02 +00:00 committed by The Qt Project
parent 1192a9d81a
commit 5adb974194

View File

@ -326,10 +326,9 @@ 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;
}