4#ifndef QWASMINPUTCONTEXT_H
5#define QWASMINPUTCONTEXT_H
8#include <qpa/qplatforminputcontext.h>
9#include <QtCore/qpointer.h>
10#include <private/qstdweb_p.h>
11#include <emscripten/bind.h>
12#include <emscripten/html5.h>
13#include <emscripten/emscripten.h>
25 void update(Qt::InputMethodQueries)
override;
29 bool isValid()
const override {
return true; }
35 emscripten::val inputHandlerElementForFocusedWindow();
37 bool m_inputPanelVisible =
false;
40 emscripten::val m_inputElement = emscripten::val::null();
41 std::unique_ptr<qstdweb::EventCallback> m_blurEventHandler;
42 std::unique_ptr<qstdweb::EventCallback> m_inputEventHandler;
43 static int androidKeyboardCallback(
int eventType,
44 const EmscriptenKeyboardEvent *keyEvent,
void *userData);
45 bool inputPanelIsOpen =
false;
The QPlatformInputContext class abstracts the input method dependent data and composing state.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void showInputPanel() override
Request to show input panel.
~QWasmInputContext() override
bool isValid() const override
Returns input context validity.
void hideInputPanel() override
Request to hide input panel.
void update(Qt::InputMethodQueries) override
Notification on editor updates.
void focusWindowChanged(QWindow *focusWindow)
void inputStringChanged(QString &, QWasmInputContext *context)
Combined button and popup list for selecting options.