mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
A host reports textDidChange for the keys' own inserts, and some report it after the insert has finished, with a proxy that still returns the text from before it. textDidChange cleared swipedWord and read auto-capitalization from that report, so "This is a test" swiped quickly came out "This Isa test". A swipe now records the text it left before and after the cursor, and textDidChange keeps it while the host's update is that echo or a lagging read, still clearing it for a change made elsewhere, a cursor move, a selection, a cleared field or another field. A short-lived record of Hex's own insert (typingContext, bounded by clock, with the text after the cursor too) gives word boundaries and casing what Hex typed while the host catches up, in the host's own straight-quote form. Paths that move text around the keys (a delete slide, an autocorrection or text replacement, the strip's revert, a double-space period, a smart dash, a held space, Czech and Greek accents, a paste, a dictation, an undo) record the text they leave, so the next key reads the corrected text and not the old one; anything that deletes or replaces text still reads the host's own report. Delete and a strip pick decide the held space before forgetting the record, as that decision deletes nothing; a picked reading records the word it puts in, not the one the host still reports. The delete key's repeat moves to DeleteWordSwipe.swift, and the key labels and trackpad state to their extensions, to keep the engine under the file-size cap. Tests: a host echo after each swipe, a proxy that lags one insert, reports nil or empty, the lifetime bound, an edit or cursor move from elsewhere (casing too), a delete slide right after a swipe, an autocorrection on space in a stale host before a swipe, a field cleared after a swipe, a smart-quote swipe's echo, a delete after a pick and a picked swipe reading, each with a host still reporting the old text. |
||
| .. | ||
| Fixtures | ||
| AutocorrectEngineTests.swift | ||
| CleanupTaggerTests.swift | ||
| CustomVocabularyTests.swift | ||
| DictationControllerTests.swift | ||
| DictationLanguageTests.swift | ||
| DictationLearningTests.swift | ||
| DotScopeTests.swift | ||
| EmojiPanelLettersKeyTests.swift | ||
| EmojiSuggesterTests.swift | ||
| FullKeyboardEngineTests.swift | ||
| HexKeyGestureTests.swift | ||
| KeyboardBridgeTests.swift | ||
| KeyboardLayoutTests.swift | ||
| KeyboardSwitchGuessTests.swift | ||
| LanguageLearningTests.swift | ||
| ShiftStateMachineTests.swift | ||
| SwipeDecoderTests.swift | ||
| TranscriptCleanupTests.swift | ||
| TypingLogTests.swift | ||
| TypingReplayTests.swift | ||