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:
miruka 2020-08-23 09:14:45 -04:00
parent 0434659ad1
commit 4000d70514

View File

@ -33,6 +33,8 @@ HListView {
""
function replaceCompletionOrCurrentWord(withText) {
Qt.inputMethod.reset()
const current = textArea.getWordBehindCursor()
if (! current) return