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 tap on the live preview's words finishes the dictation What: while Show what I say has the words in place of the keys, a tap on them finishes the dictation exactly as the recording bar's check mark does (the same onStopTap, logged as dictation_stop from live_preview), with Show what I say alone and with Type as I speak. Only a tap counts, by the keys' own measures: a touch that moves more than FullKeyboardEngine.accentSlop (10 pt) or is held FullKeyboardEngine.accentHoldDelay (0.36 s, when a key opens its accents) does nothing, and so does one landing within 0.4 s of the words appearing (their 0.3 s fade in plus 0.1 s: the end of the tap that started the dictation, or a thumb settling). It finishes once; further taps do nothing. VoiceOver keeps reading the words; activating them, or the Finish dictation action (an existing string, already in Simplified Chinese), finishes too. The preview's touches no longer go on up to the keyboard view (they did nothing there while recording). ✕, ✓, the recording bar and iOS's globe and microphone row are unchanged, and with the preview off nothing changes: the keys stay. Why: Ryan: "make it so that you can tap anywhere on the screen and it will stop dictation, for the nice live preview." Verified: LiveDictationTests on the Studio simulator (11, two new: a tap finishes in both modes; a slide, a hold, a tap as the words come in and a second tap don't; ✕ still cancels; VoiceOver activation and action; with the preview off the keys stay at full alpha). * iOS keyboard tests: the live preview's tap at its edges What: LiveDictationTests.testOnlyAKeysTapAfterTheWordsHaveComeInCounts drives the words' touch handling at the edges of its two thresholds, the things only a real thumb would otherwise show: movement up to FullKeyboardEngine.accentSlop (10 pt) from touch-down is still a tap, further is not, nor a touch that goes out and comes back, lifts further away, or slides across the words; lifting just inside FullKeyboardEngine.accentHoldDelay (0.36 s) finishes, at it does not; a touch landing just inside LiveDictationPreviewView.settle (0.4 s from the words appearing, the words' 0.3 s fade in plus 0.1 s) does nothing even if it lifts after, and one just after it finishes. It pins the three numbers so a change to any of them shows here. Why: the iPhone couldn't be tapped this afternoon (its touch runner needs the passcode entered on the phone), so these stand in for a thumb. Verified: LiveDictationTests on the Studio simulator, 12 tests, 0 failures. |
||
| .. | ||
| Fixtures | ||
| AppleSpeechAssetReservationsTests.swift | ||
| 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 | ||
| TypingGateReplayTests.swift | ||
| TypingLogTests.swift | ||
| TypingReplayTests.swift | ||