pull/436/head
gedoor 4 years ago
parent 5367891f70
commit cda1905108
  1. 2
      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 { } else {
editableText.append(",").append(keyCode.toString()) editableText.append(",").append(keyCode.toString())
} }
return true
} else if (et_next.hasFocus()) { } else if (et_next.hasFocus()) {
val editableText = et_next.editableText val editableText = et_next.editableText
if (editableText.isEmpty() or editableText.endsWith(",")) { if (editableText.isEmpty() or editableText.endsWith(",")) {
@ -43,6 +44,7 @@ class PageKeyDialog(context: Context) : Dialog(context, R.style.AppTheme_AlertDi
} else { } else {
editableText.append(",").append(keyCode.toString()) editableText.append(",").append(keyCode.toString())
} }
return true
} }
} }
return super.onKeyDown(keyCode, event) return super.onKeyDown(keyCode, event)

Loading…
Cancel
Save