feat: volume-key page turning for e-ink + double-tap back#2185
Open
mjhfunctionalashtanga wants to merge 1 commit into
Open
feat: volume-key page turning for e-ink + double-tap back#2185mjhfunctionalashtanga wants to merge 1 commit into
mjhfunctionalashtanga wants to merge 1 commit into
Conversation
Adds an opt-in "Volume keys turn pages" gesture (Settings → Gestures → Reader). Volume-down pages the article forward by ~90% of the viewport, volume-up pages back, and at a scroll edge it rolls to the next/previous article. Double-tap volume-up dispatches Back, honoring the configured back action (close article / open drawer / navigate to parent). Also pages the article list. Yields to audio so the rocker still controls volume during playback. Off by default. On e-ink devices (Boox, etc.) hardware page keys are the natural way to read hands-free without touching the screen and triggering ghosting. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an opt-in Volume keys turn pages gesture (Settings → Gestures → Reader), aimed at e-ink devices:
Why
On e-ink readers (Boox, etc.) the hardware volume rocker is the natural way to turn pages hands-free without touching the screen — screen taps/swipes cause ghosting, and physical page keys are a defining e-ink affordance (à la EinkBro). This is a frequently-requested pattern for reading apps on those devices.
How it's built
VolumeKeyPagersingleton bridgesMainActivity.dispatchKeyEvent(which consumes the volume keys only when the feature is active) to the reader/list scrollers registered from Compose.Happy to adjust naming, the settings placement, the double-tap window, or gate it behind an "e-ink" section if you'd prefer.
🤖 Generated with Claude Code