Skip to content

Add after-selection scan preferences to the settings model - #936

Merged
enaboapps merged 2 commits into
mainfrom
930-after-selection-model
Sep 28, 2026
Merged

enaboapps merged 2 commits into
mainfrom
930-after-selection-model

Conversation

@enaboapps

@enaboapps enaboapps commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #930

Part of #935.

Change

Adds two scan preferences to point-scan.json, each with a shared value and an override for Point, Menu, Keyboard and Mouse.

Preference Values Default
nextScan standard, automatic, wait standard
startFrom standard, beginning, selection standard
  • standard means what each scanner does today. The scanners differ, so one shared default of automatic or wait would change someone's behaviour on update.
  • A saved keyboardWaitAfterTyping resolves to wait for the keyboard, unless a choice has been made since.
  • A value this version does not know is dropped on its own. Before this, it would have reset every scan preference.

No scanner reads the new values yet, so behaviour is unchanged. The settings stay local; there is no protocol change. Older builds ignore the new fields.

Validation at 41d0c5d

All run locally on Windows and passing:

  • npm run lint, npm test, npm run build
  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test: 588 passed

New tests cover defaults, round trip, per-scanner overrides, the saved wait after typing, and unknown values.

🤖 Generated with Claude Code

Next scan and Start from have a shared value and an override for each
scanner. Standard keeps what each scanner does today. A saved wait
after typing becomes the keyboard's choice, and a value this version
does not know falls back alone.

Closes #930

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@enaboapps enaboapps added this to the v1.0.0-rc.17 milestone Sep 28, 2026
Review follow-up: a null shared value is dropped like an unknown one,
and the keyboard's own standard choice now stands over a saved wait
after typing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add after-selection scan preferences to the settings model

2 participants