reverted movement method for ComposeEditText because previous one ignored key movement
This commit is contained in:
parent
3fab1c38b4
commit
a6a18fb99c
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue