Merge pull request #209 from Merkost/paste_fix

Changed onPastedText cursor position to the end of the text
This commit is contained in:
Tibor Kaputa 2023-06-28 09:25:01 +02:00 committed by GitHub
commit e41c6c0817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {