mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* iOS keyboard: a space right after a suggestion is swallowed
A suggestion (a word, what you typed, or an emoji) types its word and a
space. A space pressed right after it typed a second one: Record typing
logs from a tester's iPhone showed every double space came from a strip
pick followed by space (8 of 9; the ninth was a held space, next commit).
Now that space is swallowed, as on Apple's keyboard, while the text
before the cursor is still what the suggestion left; any key, delete,
cursor move or other host change in between types it normally. The
swallowed press still counts towards double-space for a period. Typing
logs write it as edit op space_swallowed.
Verified: FullKeyboardEngineTests and AutocorrectEngineTests pass on an
iOS 27.2 simulator (63 tests); live in Messages, picking "pretty" from the
strip then space left one space.
* iOS keyboard: a strip tap while typing types the row-1 key below it
Record typing logs showed "the" coming out "th" with a double space: the
e, aimed a few points high, landed on the suggestion strip's left slot
17 to 170 ms after the previous key, which picked what was typed ("th")
and a space, and the next space doubled it. The pick also suppressed
"th" -> "the" for the rest of the session (and two such picks learn
"th" as a word). 6 of the 14 strip picks in the log were this; the
deliberate ones came 0.9 s or more after a key.
While you type (a key is down, or one went down or came up within
0.25 s) the strip's lower half now belongs to the keys: the key plane,
which lies over the strip, claims those touches in point(inside:), and
the engine presses the row-1 key straight below (the point moved onto
row 1's top edge, also for Spatial autocorrect's tap). The upper half,
and any tap after a pause, still picks. Typing logs mark such a press
with under: null on began.
Verified: FullKeyboardEngineTests and AutocorrectEngineTests pass on an
iOS 27.2 simulator (66 tests), including the view's hit test. Live in
Messages with a diagnostic build whose window was widened to 2 s (AXe
taps are ~0.9 s apart; not committed): "on th" then a tap on the strip's
lower half above e typed "On the "; the same tap after 2.6 s still
picked "th".
* iOS keyboard: holding the space bar still starts the trackpad
Record typing logs showed a double space typed by a space held about
0.5 s without moving, right after a space: a hold meant for Apple's
trackpad gesture, which Hex only started after a 10 pt slide, so the
release typed a space. Holding space still for 0.4 s now starts the
trackpad where the finger is, as Apple's does (keys blank, a selection
tick), and letting go types nothing; sliding 10 pt still starts it at
once. Normal space taps in the log last under 100 ms. Typing logs mark
it trackpad_start with hold: true.
Verified: the full HEXMobileTests suite passes on an iOS 27.2 simulator
(310 tests, 1 skipped as before), including the plane's hold timer. Live
in Messages, holding space for 0.7 s typed no space.
|
||
| .. | ||
| DictationStages.swift | ||
| TypingLogEvent.swift | ||
| TypingLogger.swift | ||
| TypingLogSession.swift | ||
| TypingLogStore.swift | ||