Skip to content

Commit cd66af8

Browse files
committed
Changed onPastedText cursor position to the end of the text
1 parent 7b80307 commit cd66af8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/interfaces/OnKeyboardActionListener.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.simplemobiletools.keyboard.interfaces
22

3+
/**
4+
* The SimpleKeyboardIME class uses this interface to communicate with the input connection
5+
*/
36
interface OnKeyboardActionListener {
47
/**
58
* Called when the user presses a key. This is sent before the [.onKey] is called. For keys that repeat, this is only called once.

app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
241241
}
242242

243243
override fun onText(text: String) {
244-
currentInputConnection?.commitText(text, 0)
244+
currentInputConnection?.commitText(text, 1)
245245
}
246246

247247
override fun reloadKeyboard() {

0 commit comments

Comments
 (0)