mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
fix build
This commit is contained in:
parent
bcf2a52d6a
commit
2bce73ad7d
1 changed files with 2 additions and 2 deletions
|
@ -184,12 +184,12 @@ class KeyboardActionListenerImpl(private val latinIME: LatinIME, private val inp
|
|||
if (inputLogic.moveCursorByAndReturnIfInsideComposingWord(moveSteps)) {
|
||||
// no need to finish input and restart suggestions if we're still in the word
|
||||
// this is a noticeable performance improvement
|
||||
val newPosition: Int = inputLogic.mConnection.mExpectedSelStart + moveSteps
|
||||
val newPosition = inputLogic.mConnection.expectedSelectionStart + moveSteps
|
||||
inputLogic.mConnection.setSelection(newPosition, newPosition)
|
||||
return true
|
||||
}
|
||||
inputLogic.finishInput()
|
||||
val newPosition: Int = inputLogic.mConnection.mExpectedSelStart + moveSteps
|
||||
val newPosition = inputLogic.mConnection.expectedSelectionStart + moveSteps
|
||||
inputLogic.mConnection.setSelection(newPosition, newPosition)
|
||||
inputLogic.restartSuggestionsOnWordTouchedByCursor(settings.current, keyboardSwitcher.currentKeyboardScript)
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue