Reset input method when autocompleting a user
Fixes IME being left in a strange state upon autocompleting a word that was being edited.
This commit is contained in:
parent
0434659ad1
commit
4000d70514
|
@ -33,6 +33,8 @@ HListView {
|
||||||
""
|
""
|
||||||
|
|
||||||
function replaceCompletionOrCurrentWord(withText) {
|
function replaceCompletionOrCurrentWord(withText) {
|
||||||
|
Qt.inputMethod.reset()
|
||||||
|
|
||||||
const current = textArea.getWordBehindCursor()
|
const current = textArea.getWordBehindCursor()
|
||||||
if (! current) return
|
if (! current) return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user