From cda19051081e54237206d832c05320c899d9d201 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 21 Oct 2020 07:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/config/PageKeyDialog.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/PageKeyDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/PageKeyDialog.kt index 5e570a96f..ce479caba 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/PageKeyDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/PageKeyDialog.kt @@ -36,6 +36,7 @@ class PageKeyDialog(context: Context) : Dialog(context, R.style.AppTheme_AlertDi } else { editableText.append(",").append(keyCode.toString()) } + return true } else if (et_next.hasFocus()) { val editableText = et_next.editableText if (editableText.isEmpty() or editableText.endsWith(",")) { @@ -43,6 +44,7 @@ class PageKeyDialog(context: Context) : Dialog(context, R.style.AppTheme_AlertDi } else { editableText.append(",").append(keyCode.toString()) } + return true } } return super.onKeyDown(keyCode, event)