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: the gap above row 4 is the space bar's only over the space bar What: #2379 gave the whole gap between rows 3 and 4 to row 4, as Apple's bottom row takes taps up to 2.5 pt into row 3's keycaps. But Hex's rows 2 to 4 sit 1, 2 and 3 pt above Apple's, so a finger trained on Apple's keyboard lands lower on Hex's row 3, and replaying two days of Ryan's logged taps through origin/dev turned low m's into Return (which can send a message) and low n's into spaces. Now the gap is the space bar's only across its width: row 3's keys whose middle is over the space bar end at their keycaps and the band under them belongs to the space bar; over 123, emoji, globe, return and any other bottom-row key the gap splits half and half, as before #2379. Same scope as #2379 (every iPhone layout but the Duo's split keyboard; the iPad untouched); the number row and the other gaps unchanged. The seams: the band's ends are the hit edges of the row-3 keys over the space bar (on a 17 Pro, English: x 102.25 and 299.42 pt, between z|x and n|m, against the space bar's own hit edges at 102.33 and 299.67), so a straddling key never splits and the targets still tile with no holes or overlaps. Code: KeyboardKey.gapHitFrame (the space bar's band) and takes(_:) (hitFrame or the band); KeyboardLayout.hitTest and FullKeyboardEngine's claimed check use it. AdaptiveTouch reads only letters' hit frames, which stay single rectangles, so it is unchanged. Tests: KeyboardLayoutTests' tiling tests count hits with takes(_:); the emoji's dead margin is back to half a gap; the 17 Pro case checks the band; new case testTheGapAboveRowFourIsTheSpaceBarsOnlyOverTheSpaceBar (1 pt under every row-3 key: the key itself unless it is over the space bar, then the space bar; m above return stays m; AZERTY's delete above return stays delete; English, Pro Max, SE, turned, AZERTY with the apostrophe key, Ukrainian's twelve-key rows, the number row). xcodebuild test (17 Pro, iOS 27.2): 857 tests, 0 failures, 3 skipped. code-shape passes. * iOS keyboard: keep KeyboardLayout.swift under 1,500 lines with the space bar's gap band What: after rebasing onto dev's comma and period keys (#2392), KeyboardLayout.swift reached 1,513 lines. The previous commit's code is tightened with no change in behaviour: shorter comments, the KeyboardKey initializer on one line, and the band's height written as half a gap (rowY(3) - rowGap/2 minus rowY(3) - rowGap) instead of through a midGap constant. Now 1,499 lines. With the comma and period experiment on, the space bar's keycap is narrower and row 3's keys over the comma or period key split the gap like any other non-space key. Verified: xcodebuild test (iPhone 17 Pro, iOS 27.2) on this head: 871 tests, 0 failures, 3 skipped. python3 scripts/code-shape.py passes. |
||
| .. | ||
| Fixtures | ||
| AutocorrectEngineTests.swift | ||
| CleanupTaggerTests.swift | ||
| CustomVocabularyTests.swift | ||
| DictationControllerTests.swift | ||
| DictationLanguageTests.swift | ||
| DictationLearningTests.swift | ||
| DotScopeTests.swift | ||
| EmojiPanelLettersKeyTests.swift | ||
| EmojiSuggesterTests.swift | ||
| FullKeyboardEngineTests.swift | ||
| GreeklishRomanizerTests.swift | ||
| HangulComposerTests.swift | ||
| HexKeyGestureTests.swift | ||
| KeyboardBridgeTests.swift | ||
| KeyboardDuoCoverTests.swift | ||
| KeyboardLayoutTests.swift | ||
| KeyboardSwitchGuessTests.swift | ||
| KeyboardThemeTests.swift | ||
| LaggingField.swift | ||
| LanguageLearningTests.swift | ||
| ShiftStateMachineTests.swift | ||
| SwipeDecoderTests.swift | ||
| TranscriptCleanupTests.swift | ||
| TwoLanguageMergeTests.swift | ||
| TwoThumbSelectionTests.swift | ||
| TypingLogTests.swift | ||
| TypingReplayTests.swift | ||