2.5 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-309 | Accept modified follow-up digits for multi-line sentence mining | Done |
|
2026-04-27 20:06 | 2026-04-27 20:15 |
|
high |
Description
On Linux, Ctrl+Shift+S starts multi-line sentence-card mining, but the follow-up digit is not accepted and the prompt times out. Restore reliable digit capture for the multi-mine flow, including the common case where the original shortcut modifiers are still held briefly while pressing the digit.
Acceptance Criteria
- #1
Ctrl+Shift+Sfollowed by a number-row digit creates a countedmineSentenceMultiplerequest instead of timing out. - #2 Follow-up digit capture works when the user has not fully released
Ctrl/Shiftafter the starter shortcut. - #3 Regression coverage includes renderer session bindings and mpv plugin numeric selection.
Implementation Notes
Backlog MCP unavailable in this session, so this task is tracked via repo-local backlog files.
Implemented renderer digit extraction from KeyboardEvent.code for pending numeric selection, so shifted number-row events such as Ctrl+Shift+Digit3 still dispatch count 3. Updated the mpv plugin session-binding numeric selector to register bare digits plus the starter shortcut modifier combinations, so plugin-owned Ctrl+Shift+S can accept a follow-up digit before the modifiers are fully released.
Verification:
bun test src/renderer/handlers/keyboard.test.ts src/core/services/overlay-shortcut-handler.test.ts src/core/services/overlay-window.test.tsbun run test:plugin:srcbun run changelog:lintbun x prettier --check src/renderer/handlers/keyboard.ts src/renderer/handlers/keyboard.test.ts package.json 'changes/309-multi-mine-modified-digits.md' 'backlog/tasks/task-309 - Accept-modified-follow-up-digits-for-multi-line-sentence-mining.md'
Final Summary
Restored multi-line sentence-card digit capture for the case where Ctrl/Shift are still held after Ctrl+Shift+S. The renderer now accepts digits by physical Digit1-Digit9/Numpad1-Numpad9 code during pending numeric selection, and the mpv plugin registers the matching modified digit bindings for session-binding numeric prompts.