summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandinputcontext.cpp
diff options
context:
space:
mode:
authorJan Arne Petersen <jan.petersen@kdab.com>2016-04-06 20:44:08 +0200
committerJan Arne Petersen <jan.petersen@kdab.com>2016-04-18 12:27:10 +0000
commit99ce12ed9ed00846387e7b3ab3d0ba8a1d7c94e3 (patch)
tree393e496f293955b84974c229e097b44fd281825a /src/client/qwaylandinputcontext.cpp
parent5444ea50bb2b1b894d5b3c33676f9ef207fdcd1a (diff)
Fix clicking on preedit text
Ignore clicks inside of preedit text for now instead of resulting in an unexpected reset. Change-Id: I9962f3a2a868a9a1afa7b0082fba97ec6cc6c500 Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/client/qwaylandinputcontext.cpp')
-rw-r--r--src/client/qwaylandinputcontext.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/qwaylandinputcontext.cpp b/src/client/qwaylandinputcontext.cpp
index aeaf415d2..f211780fd 100644
--- a/src/client/qwaylandinputcontext.cpp
+++ b/src/client/qwaylandinputcontext.cpp
@@ -185,6 +185,11 @@ void QWaylandTextInput::updateState(Qt::InputMethodQueries queries, uint32_t fla
}
}
+void QWaylandTextInput::setCursorInsidePreedit(int)
+{
+ // Not supported yet
+}
+
bool QWaylandTextInput::isInputPanelVisible() const
{
return m_inputPanelVisible;
@@ -445,6 +450,15 @@ void QWaylandInputContext::update(Qt::InputMethodQueries queries)
textInput()->updateState(queries, QtWayland::zwp_text_input_v2::update_state_change);
}
+void QWaylandInputContext::invokeAction(QInputMethod::Action action, int cursorPostion)
+{
+ if (!textInput())
+ return;
+
+ if (action == QInputMethod::Click)
+ textInput()->setCursorInsidePreedit(cursorPostion);
+}
+
void QWaylandInputContext::showInputPanel()
{
qCDebug(qLcQpaInputMethods) << Q_FUNC_INFO;