Skip to content

fix(ios): put the key-term field's caret before the placeholder - #255

Merged
hsingh-aai merged 2 commits into
mainfrom
fix/ios-key-term-cursor
Oct 20, 2026
Merged

hsingh-aai merged 2 commits into
mainfrom
fix/ios-key-term-cursor

Conversation

@hsingh-aai

Copy link
Copy Markdown
Contributor

What

In the iPhone keyboard's Add key term field, the blinking caret was drawn at the end of the empty placeholder:

New key term|

A system text field puts it at the start, where the first letter will land:

|New key term

TermField now draws the caret before the placeholder while the field is empty, and after the typed text once there is some (unchanged). The caret's small gap now sits on the side facing the text in both cases.

One file: App/BlurtiOS/BlurtKeyboard/Sources/TermField.swift.

Testing

  • scripts/ios-check.sh: ok (144 iPhone tests passed, swiftlint analyze and periphery clean, probe bundle compiled).
  • swift-format lint --strict and swiftlint lint --strict on the file: clean.
  • Not verified on screen. scripts/ios-keyboard-flows.sh (which screenshots the key-term step) needs the Blurt keyboard enabled on the simulator by hand, which this machine doesn't have. Worth a glance on a device or simulator: tap +, the caret should blink before "New key term".

🤖 Generated with Claude Code

hsingh-aai and others added 2 commits October 20, 2026 11:29
On an empty field the blinking caret was drawn after the placeholder
("New key term|"), where nothing will be typed. A system text field draws
it at the start ("|New key term") and only follows the text once there is
some. TermField now does the same: caret first on an empty field, after
the draft once one exists, with its gap on the side facing the text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@he-james he-james left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hsingh-aai
hsingh-aai merged commit 595dc1e into main Oct 20, 2026
11 of 12 checks passed
@hsingh-aai
hsingh-aai deleted the fix/ios-key-term-cursor branch October 20, 2026 19:53
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.

2 participants