Changed onPastedText cursor position to the end of the text

This commit is contained in:
merkost 2023-06-28 11:54:14 +10:00
parent 7b80307abd
commit cd66af8cc0
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
package com.simplemobiletools.keyboard.interfaces
/**
* The SimpleKeyboardIME class uses this interface to communicate with the input connection
*/
interface OnKeyboardActionListener {
/**
* Called when the user presses a key. This is sent before the [.onKey] is called. For keys that repeat, this is only called once.

View File

@ -241,7 +241,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
}
override fun onText(text: String) {
currentInputConnection?.commitText(text, 0)
currentInputConnection?.commitText(text, 1)
}
override fun reloadKeyboard() {