This commit is contained in:
Horis
2023-08-02 12:22:12 +08:00
parent 8ff5b2abf9
commit 5d9c9e0537
2 changed files with 12 additions and 2 deletions
@@ -206,6 +206,9 @@ class ReadBookActivity : BaseReadBookActivity(),
autoPageStop()
return@addCallback
}
if (getPrefBoolean("disableReturnKey") && !menuLayoutIsVisible) {
return@addCallback
}
finish()
}
}
@@ -149,6 +149,13 @@
app:iconSpaceReserved="false"
app:isBottomBackground="true" />
<io.legado.app.lib.prefs.SwitchPreference
android:defaultValue="false"
android:key="disableReturnKey"
android:title="@string/disable_return_key"
app:iconSpaceReserved="false"
app:isBottomBackground="true" />
<io.legado.app.lib.prefs.Preference
android:key="customPageKey"
android:title="@string/custom_page_key"