hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 8878c0a200
iOS: text replacements take the shortcut's leading capital (#2153)
Hex inserted a text replacement exactly as stored, so "Brb" (typed with a capital,
or auto-capitalised at a sentence start) became "be right back" where Apple's
keyboard writes "Be right back".

Apple's keyboard (black box, iOS 27.2 sim, Messages, replacements brb -> "be right
back", mip -> "My iPhone", omw -> "On my way!"): "Brb" -> "Be right back" (typed or
auto-capitalised), "brb" -> "be right back", all caps "BRB" -> "be right back" (as
stored, not uppercased), and stored capitals always stay: "omw"/"OMW" -> "On my way!",
"mip"/"Mip"/"MIP" -> "My iPhone".

Hex now matches: the replacement's first letter is capitalised only when the
shortcut was typed with a leading capital and isn't all caps (a one-letter shortcut
counts as a leading capital), and only if that letter is lowercase in the stored
text; otherwise it goes in as stored. The same casing is used on space, on
punctuation, in the strip, with Autocorrect on or off and in bilingual autocorrect.

Verified: new AutocorrectEngineTests case (the eight cases above mid-sentence, the
strip, auto-capitalised at a sentence start with Autocorrect on and off); full
HEXMobileTests suite (469 tests) passes; live in Messages on an iOS 27.2 sim with
Hex: all eight cases and "brb" at a sentence start come out as on Apple's keyboard.
2026-11-21 07:19:21 +00:00
..
Emoji
AccentPicker.swift
AdaptiveTouch.swift
AdaptiveTouchLabels.swift
AutocorrectEngine.swift
DeleteWordSwipe.swift
FullKeyboardEngine.swift
FullKeyboardPalette.swift
FullKeyboardSettings.swift
FullKeyboardView+Emoji.swift
FullKeyboardView.swift
HexKeyGesture.swift
HexKeyViews.swift
KeyboardBackdropView.swift
KeyboardClipboard.swift
KeyboardKeyPlaneView.swift
KeyboardLanguage.swift
KeyboardLayout.swift
KeyboardStripView.swift
never-suggest.tsv
OffensiveWords.swift
ShiftStateMachine.swift
SwipeDecoder.swift
SwipeTyping.swift
TypingDecoder.swift
TypingJournal.swift
TypingJournalLearning.swift