pull/436/head
gedoor 4 years ago
parent 445a9e2f13
commit 5367891f70
  1. 2
      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(",")) {

Loading…
Cancel
Save