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