When Paste (or Paste dictation) is the only chip in the bar above the keys,
only the small chip took the tap. Ryan asked for the whole width to work.
What changed
- KeyboardStripView: the Paste chip is now a StripChip, a UIButton whose touch
can reach past its frame (touchArea). While Paste is the only chip, its area
is the bar from the keyboard's top to the bar's bottom, across to the Hex
key's cell (FullKeyboardView passes it as barTouchFrame, from the layout's
stripBarFrame and the Hex key's hit frame, so it follows the bar's bounds,
not a fixed height: 44 pt Apple bar on iOS 26+, 38 pt strip on iOS 18).
The chip lights on touch-down anywhere there, follows the finger in and
out, and pastes only if it lifts inside, so a finger slid off the bar
cancels. The chip's look, size, place and VoiceOver element are unchanged.
- The Hex key's cell and row 1's reach above the keys sit over the strip and
keep their own touches. Beside Code from Messages, with Code alone, and with
words, every chip and word keeps its own touch area, as before.
- Behaviour given up: while Paste is the only chip, a still hold on an empty
part of the bar no longer starts a bar-hold dictation there (the tap is
Paste's); the Hex key's hold still does.
Verified
- Real HID touches on Studio simulators (iPhone 17 Pro) on this head's code,
Paste only: iOS 27.2 upright 13 rows x 21 columns, 26.5 upright 10 x 21,
27.2 turned 9 x 26. Every point inside Hex's bar left of the Hex key's
cell pasted (x up to 341 pt, cell divider at 343); every point in the Hex
key's cell gave the Hex key's own response and never pasted; points 1 pt
above row 1 (and the bar's bottom 6-8 pt, row 1's reach) typed the key;
points above Hex's view (iOS's band) and outside the turned bar's safe area
did nothing, as on origin/dev.
- xcodebuild test on an iPhone 17 Pro iOS 27.2 simulator: 854 tests, 0
failures (3 skipped), including the new TranslationPasteSwitchTests
testPasteTakesTheWholeBar (hit tests across the bar for Paste, Paste
dictation, the two-chip case, Code alone and words).
- python3 scripts/code-shape.py passes; no new files.