mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-04-24 23:18:48 +02:00
Merge pull request #209 from Merkost/paste_fix
Changed onPastedText cursor position to the end of the text
This commit is contained in:
commit
e41c6c0817
@ -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…
x
Reference in New Issue
Block a user