Changed onPastedText cursor position to the end of the text
This commit is contained in:
parent
7b80307abd
commit
cd66af8cc0
|
@ -1,5 +1,8 @@
|
||||||
package com.simplemobiletools.keyboard.interfaces
|
package com.simplemobiletools.keyboard.interfaces
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The SimpleKeyboardIME class uses this interface to communicate with the input connection
|
||||||
|
*/
|
||||||
interface OnKeyboardActionListener {
|
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.
|
* Called when the user presses a key. This is sent before the [.onKey] is called. For keys that repeat, this is only called once.
|
||||||
|
|
|
@ -241,7 +241,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onText(text: String) {
|
override fun onText(text: String) {
|
||||||
currentInputConnection?.commitText(text, 0)
|
currentInputConnection?.commitText(text, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun reloadKeyboard() {
|
override fun reloadKeyboard() {
|
||||||
|
|
Loading…
Reference in New Issue