From a6a18fb99c7354d13340acc2f7e32a48022e7da9 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 17 May 2017 15:35:10 +0800 Subject: [PATCH] reverted movement method for ComposeEditText because previous one ignored key movement --- .../main/kotlin/org/mariotaku/twidere/view/ComposeEditText.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/view/ComposeEditText.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/view/ComposeEditText.kt index c97f2ad0d..3d837cd09 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/view/ComposeEditText.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/view/ComposeEditText.kt @@ -26,7 +26,7 @@ import android.support.v13.view.inputmethod.InputContentInfoCompat import android.support.v4.os.BuildCompat import android.text.InputType import android.text.Selection -import android.text.method.BaseMovementMethod +import android.text.method.ArrowKeyMovementMethod import android.text.method.MovementMethod import android.util.AttributeSet import android.view.inputmethod.EditorInfo @@ -65,7 +65,7 @@ class ComposeEditText( } override fun getDefaultMovementMethod(): MovementMethod { - return BaseMovementMethod() + return ArrowKeyMovementMethod() } override fun onAttachedToWindow() {