wasm: Text input hotfix

Focus the canvas on window activation to make the screen receive
key events.

Fixes: QTBUG-111848
Change-Id: Iad3474681653b176eebd901aaf59e84538681351
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
Mikolaj Boc 2022-12-08 11:01:41 +01:00 committed by Lorn Potter
parent e453de0c0b
commit fa5a8fa821

View File

@ -477,6 +477,10 @@ void QWasmWindow::requestActivateWindow()
if (window()->isTopLevel())
raise();
if (!QWasmIntegration::get()->inputContext())
m_canvas.call<void>("focus");
QPlatformWindow::requestActivateWindow();
}