Fix moving cursor.
This commit is contained in:
parent
7ceb391621
commit
d9e778fe0c
|
@ -177,8 +177,8 @@ Rectangle {
|
||||||
if (event.modifiers & Qt.ShiftModifier) {
|
if (event.modifiers & Qt.ShiftModifier) {
|
||||||
insert(cursorPosition, "\n")
|
insert(cursorPosition, "\n")
|
||||||
} else if (userAutoComplete.visible) {
|
} else if (userAutoComplete.visible) {
|
||||||
text = text.substring(0, text.lastIndexOf(" "));
|
remove(text.lastIndexOf(" ") + 1, text.length)
|
||||||
insert(cursorPosition, userAutoCompleteListView.currentItem.displayName)
|
insert(cursorPosition, userAutoCompleteListView.currentItem.displayName + " ")
|
||||||
userAutoComplete.visible = false
|
userAutoComplete.visible = false
|
||||||
} else {
|
} else {
|
||||||
postMessage(text)
|
postMessage(text)
|
||||||
|
|
Loading…
Reference in New Issue