mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Follow-up to the previous commit, at the coordinator's request: hiding the chip in text-style code fields whenever Emoji or another third-party keyboard is on took it away from almost everyone (Emoji is on by default) with no pointer to where codes come from. Change: - Where advanceToNextInputMode could land elsewhere (Emoji or another third-party keyboard on, field not a number pad), the chip stays and a tap opens iOS's own keyboard list, where the person picks Apple's keyboard. Replaced: the previous commit's hiding of the chip there. KeyboardInputModes.route gives .next or .list (nil without Apple's keyboard); KeyboardClipboardOffer.code gains opensList (default false). - The chip's touches go to handleInputModeList(from:with:) as the globe's do, through the globe's own path (FullKeyboardView.inputModeListTouch, split out of globeTouch unchanged): the lift of a touch that stayed on the chip is held back, so UIKit's 0.2 s hold opens the list (as the globe does on the Duo's split posture, #2340). A hold shows it under the finger, and a slide onto a keyboard picks it on lift. The chip's .touchUpInside does nothing in that mode. - Number pads and lists with only Apple's keyboards besides Hex keep the direct switch. - Accessibility hint in list mode: "Shows your keyboards: pick Apple's, where iOS offers codes from Messages and Mail" (zh-Hans added). The direct mode keeps its hint. - showsPasteChip matches .code(canPaste: false, _) so the list mode doesn't show Paste. Verified (iPhone 15 Pro simulator, iOS 27.2, real touches; Apple's keyboard told apart through its keys in the accessibility tree): - List mode, a pick of English (US) from the list: 55 of 56 picks landed on Apple's keyboard across English + Emoji + Hex, Hex + Emoji + English, Hex + another third-party + English and English + Hex + another third-party; Safari one-time-code and a .oneTimeCode field with autocorrection off; upright and turned; beside Paste; Full Access on and off; tap, hold and slide-and-lift. The one miss ended on Hex with the list gone; once, the direct switch did the same (shown on Apple's keyboard, then Hex again half a second later), so it isn't specific to the list. - Direct mode unchanged: number pads in every list and English + Hex reach Apple's keyboard with no list. - On the head rebased onto #2386 (Paste alone takes the whole bar): 5 more list picks and 2 number-pad switches reach Apple's keyboard, and Paste beside the chip still pastes. - xcodebuild test on that head: 858 tests, 3 skipped, 0 failures, including testCodeFromMessagesOpensTheListWhereTheSwitchCouldMissApplesKeyboard. code-shape.py passes. - Not verified: VoiceOver with the list mode, a real phone, and whether Apple's keyboard then shows the code (a simulator gets no texts). |
||
| .. | ||
| 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 | ||