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

View File

@ -206,6 +206,9 @@ class ReadBookActivity : BaseReadBookActivity(),
autoPageStop()
return@addCallback
}
if (getPrefBoolean("disableReturnKey") && !menuLayoutIsVisible) {
return@addCallback
}
finish()
}
}

View File

@ -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"
@ -165,10 +172,10 @@
<io.legado.app.lib.prefs.SwitchPreference
android:defaultValue="true"
android:key="showReadTitleAddition"
android:title="@string/show_read_title_addition"/>
android:title="@string/show_read_title_addition" />
<io.legado.app.lib.prefs.SwitchPreference
android:defaultValue="false"
android:key="readBarStyleFollowPage"
android:title="@string/read_bar_style_follow_page"/>
android:title="@string/read_bar_style_follow_page" />
</androidx.preference.PreferenceScreen>