fix(web): prevent duplicate quotes from dead keys - #12644
SpizzyCoder wants to merge 1 commit into
Conversation
ad62c77 to
3673163
Compare
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, isolated composer bug fix that preserves explicit selection wrapping while allowing native dead-key composition to complete normally. It does not alter product defaults, schemas, deployment, or static-analysis behavior. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe prompt editor now skips surrounding-marker logic during composition, with non-text selections, empty selections, or mismatched input ranges. Existing wrapping checks remain for explicitly selected text. ChangesPrompt composition handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Since v0.0.43 made the Tiptap composer the default (#12160), this affects every US-International (dead-key) user in everyday typing, not only quote + Space. On v0.0.44 (Linux, Hyprland on Wayland, layout Could this be merged and included in the next release? |
|
Note This comment is posted by Julius' dot This changes composer text entry, but the PR supplies no before/after images or interaction recording. The written manual checks cover useful cases; please show quote plus Space, quote plus vowel, and explicit-selection wrapping with a US International layout in a short comparison recording, as required by verification, then request reconsideration. |
What Changed
Restrict the composer's selection-wrapping behavior to actual text selections and skip it during composition.
Why
With a US International keyboard layout, typing a quote dead key followed by Space duplicates the quote. The composer treated the composition replacement range as selected text and applied quote wrapping.
The guard lets native composition finish while preserving quote wrapping for explicitly selected text.
UI Changes
None
Validation
Checklist
Summary by CodeRabbit