mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Update input logic for actions
This commit is contained in:
parent
e554745869
commit
9cccdcb79d
@ -59,6 +59,8 @@ import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.futo.inputmethod.latin.common.Constants
|
||||
import org.futo.inputmethod.latin.common.Constants.CODE_DELETE
|
||||
import org.futo.inputmethod.latin.common.Constants.NOT_A_COORDINATE
|
||||
import org.futo.inputmethod.latin.uix.Action
|
||||
import org.futo.inputmethod.latin.uix.ActionBar
|
||||
import org.futo.inputmethod.latin.uix.ActionInputTransaction
|
||||
@ -664,11 +666,11 @@ class LatinIME : InputMethodService(), LifecycleOwner, ViewModelStoreOwner, Save
|
||||
}
|
||||
|
||||
override fun typeText(v: String) {
|
||||
latinIMELegacy.mInputLogic.mConnection.commitText(v, 1)
|
||||
latinIMELegacy.onTextInput(v)
|
||||
}
|
||||
|
||||
override fun backspace(amount: Int) {
|
||||
latinIMELegacy.mInputLogic.mConnection.deleteTextBeforeCursor(amount)
|
||||
latinIMELegacy.onCodeInput(CODE_DELETE, NOT_A_COORDINATE, NOT_A_COORDINATE, false)
|
||||
}
|
||||
|
||||
override fun closeActionWindow() {
|
||||
|
Loading…
Reference in New Issue
Block a user