diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2023-11-27 11:37:24 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2024-01-09 17:22:11 +1000 |
commit | 75ac9adeda41194e1733c69b3176fc2a368a369e (patch) | |
tree | 6815bca9d6d375a683ce3912c47d1042210ad823 /src/plugins/platforms/wasm/qwasminputcontext.h | |
parent | 139d57a7e906b84672024661a58628918ceff928 (diff) |
wasm: move keyboard input handling for touchscreens
It's better served where all keys are handled,
and fixes bug with modifier keys
Fixes: QTBUG-118503
Pick-to: 6.6 6.7
Change-Id: Ic53d1b332bd918dbc4fdd27ea4e43ad1e1ecce82
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasminputcontext.h')
-rw-r--r-- | src/plugins/platforms/wasm/qwasminputcontext.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/wasm/qwasminputcontext.h b/src/plugins/platforms/wasm/qwasminputcontext.h index eb840742fc..10dd1a0950 100644 --- a/src/plugins/platforms/wasm/qwasminputcontext.h +++ b/src/plugins/platforms/wasm/qwasminputcontext.h @@ -30,6 +30,7 @@ public: void focusWindowChanged(QWindow *focusWindow); void inputStringChanged(QString &, int eventType, QWasmInputContext *context); + emscripten::val m_inputElement = emscripten::val::null(); private: emscripten::val inputHandlerElementForFocusedWindow(); @@ -37,11 +38,8 @@ private: bool m_inputPanelVisible = false; QPointer<QWindow> m_focusWindow; - emscripten::val m_inputElement = emscripten::val::null(); std::unique_ptr<qstdweb::EventCallback> m_blurEventHandler; std::unique_ptr<qstdweb::EventCallback> m_inputEventHandler; - static int inputMethodKeyboardCallback(int eventType, - const EmscriptenKeyboardEvent *keyEvent, void *userData); bool inputPanelIsOpen = false; }; |