mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID Editor | Fix | Enable auto-correct by fixing IME input and action modes (#283)
This commit is contained in:
parent
ed9f41ac02
commit
7c6b4684d5
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@ import android.R.id.paste
|
|||
import android.content.Context
|
||||
import android.graphics.Canvas
|
||||
import android.os.Parcelable
|
||||
import android.text.InputType
|
||||
import android.text.Spanned
|
||||
import android.text.TextWatcher
|
||||
import android.text.util.Linkify
|
||||
|
@ -98,7 +99,12 @@ class TextInputWidget : AppCompatEditText {
|
|||
}
|
||||
|
||||
fun enableEditMode() {
|
||||
multilineIme(action = inputAction.toIMECode())
|
||||
setRawInputType(
|
||||
InputType.TYPE_CLASS_TEXT
|
||||
or InputType.TYPE_TEXT_FLAG_CAP_SENTENCES
|
||||
or InputType.TYPE_TEXT_FLAG_AUTO_CORRECT
|
||||
)
|
||||
imeOptions = inputAction.toIMECode()
|
||||
setTextIsSelectable(true)
|
||||
inReadMode = false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue