reverted movement method for ComposeEditText because previous one ignored key movement

This commit is contained in:
Mariotaku Lee 2017-05-17 15:35:10 +08:00
parent 3fab1c38b4
commit a6a18fb99c
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ import android.support.v13.view.inputmethod.InputContentInfoCompat
import android.support.v4.os.BuildCompat import android.support.v4.os.BuildCompat
import android.text.InputType import android.text.InputType
import android.text.Selection import android.text.Selection
import android.text.method.BaseMovementMethod import android.text.method.ArrowKeyMovementMethod
import android.text.method.MovementMethod import android.text.method.MovementMethod
import android.util.AttributeSet import android.util.AttributeSet
import android.view.inputmethod.EditorInfo import android.view.inputmethod.EditorInfo
@ -65,7 +65,7 @@ class ComposeEditText(
} }
override fun getDefaultMovementMethod(): MovementMethod { override fun getDefaultMovementMethod(): MovementMethod {
return BaseMovementMethod() return ArrowKeyMovementMethod()
} }
override fun onAttachedToWindow() { override fun onAttachedToWindow() {