summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasminputcontext.h
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2023-11-27 11:37:24 +1000
committerLorn Potter <lorn.potter@gmail.com>2024-01-09 17:22:11 +1000
commit75ac9adeda41194e1733c69b3176fc2a368a369e (patch)
tree6815bca9d6d375a683ce3912c47d1042210ad823 /src/plugins/platforms/wasm/qwasminputcontext.h
parent139d57a7e906b84672024661a58628918ceff928 (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.h4
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;
};