aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/openwnn/plugin/openwnninputmethod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/openwnn/plugin/openwnninputmethod.cpp')
-rw-r--r--src/plugins/openwnn/plugin/openwnninputmethod.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/openwnn/plugin/openwnninputmethod.cpp b/src/plugins/openwnn/plugin/openwnninputmethod.cpp
index d620673..efe68a1 100644
--- a/src/plugins/openwnn/plugin/openwnninputmethod.cpp
+++ b/src/plugins/openwnn/plugin/openwnninputmethod.cpp
@@ -805,6 +805,8 @@ void OpenWnnInputMethod::selectionListItemSelected(QVirtualKeyboardSelectionList
{
Q_UNUSED(type)
Q_D(OpenWnnInputMethod);
+ // Set selected text as preeditText to place cursor at the end of selected text
+ inputContext()->setPreeditText(d->candidateList.at(index)->candidate);
d->commitText(*d->candidateList.at(index));
}