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)