From 5367891f7016a386e7b3e048b1fea9b68283c95e Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 20 Oct 2020 22:55:17 +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, 1 insertion(+), 1 deletion(-) 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 04c5dabfa..5e570a96f 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 @@ -28,7 +28,7 @@ class PageKeyDialog(context: Context) : Dialog(context, R.style.AppTheme_AlertDi } override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean { - if (keyCode != KeyEvent.KEYCODE_BACK) { + if (keyCode != KeyEvent.KEYCODE_BACK && keyCode != KeyEvent.KEYCODE_DEL) { if (et_prev.hasFocus()) { val editableText = et_prev.editableText if (editableText.isEmpty() or editableText.endsWith(",")) {