hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 984515005d iOS: Paste and Code from Messages give way to suggestions in chat boxes
TestFlight build 56 (iPhone 16, iOS 27.2.1): in ChatGPT and Capy the strip's
Paste and Code from Messages chips stayed up the whole time, in place of
suggestions, even with nothing to paste.

Cause: the strip treated every .oneTimeCode field as a code field for as
long as it had focus, and a code field's chips always replaced suggestions.
Chat apps can mark their message box .oneTimeCode (inferred from a test
host: ChatGPT and Capy can't run on a simulator). Such a box reports the
same content type, keyboard type and return key as Safari's
autocomplete=one-time-code input; only autocorrection differs (a native box
leaves it at default, WebKit always sets it). Separately, Paste replaced
next-word suggestions after every word for three minutes after a copy.

Change (KeyboardClipboardTracker.offer, now given the field's keyboard type,
autocorrection and whether it is empty):
- Nothing is offered unless the field is empty, as Apple's keyboard offers a
  recent copy only in an empty field (iOS 27.2 black box). Removed: Paste in
  place of next-word suggestions in a field that has text.
- Code from Messages needs a .oneTimeCode field with a number-style keyboard,
  or with autocorrection set either way (Safari's fields), plus Apple's
  keyboard as before. A .oneTimeCode box with letters and default
  autocorrection gets suggestions and, for a fresh copy, Paste.
- Trade-off: a native .oneTimeCode text field with letters and default
  autocorrection no longer gets the chip (Paste for a fresh copy still shows).

Verified on an iPhone 16 simulator, iOS 27.2, with real touches. Before (build
56 and dev f4a45df8), in a .oneTimeCode UITextView, the chips stayed while
empty, typing and after words, with or without a copy. Autocorrect worked
(teh -> the), but its suggestions were hidden. After: a fresh copy gives Paste
only while empty, a copy older than three minutes or an empty clipboard gives
starters, typing gives suggestions. A number-pad code field shows Paste + Code
from Messages and the chip leaves after a digit. Safari
autocomplete=one-time-code input, inputmode=numeric input and textarea keep the
chip, it leaves on typing, and a plain input gets starters. With only Hex +
Emoji there is no chip, and Paste only for a fresh copy. Apple's keyboard in
the same chat box: normal predictions and autocorrect, and "Paste from <app>"
for a recent copy only while empty. xcodebuild test: 675 tests, 1 skipped, 0
failures, with a new KeyboardClipboardTests case.
2026-11-21 18:26:58 -05:00
..
Emoji iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
AccentPicker.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
AdaptiveTouch.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
AdaptiveTouchLabels.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
AutocorrectEngine+Accents.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
AutocorrectEngine+Dictionaries.swift iOS: text replacements fire like the system's and stay put, and no stray capitals from suggestions (#2173) 2026-11-21 06:10:45 -05:00
AutocorrectEngine+Distance.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine+Vocabulary.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
CzechTyping.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DeleteWordSwipe.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
DictationUndo.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
FullKeyboardEngine+Keys.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
FullKeyboardEngine+Revert.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+SmartSpace.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardEngine+Trackpad.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardEngine.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
FullKeyboardPalette.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
FullKeyboardSettings.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
FullKeyboardTouch.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardView+Emoji.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
FullKeyboardView+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
FullKeyboardView.swift iOS: Paste and Code from Messages give way to suggestions in chat boxes 2026-11-21 18:26:58 -05:00
GermanCapitals.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
GreekTyping.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
HexKeyGesture.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
HexKeyViews.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardBackdropView.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardClipboard.swift iOS: Paste and Code from Messages give way to suggestions in chat boxes 2026-11-21 18:26:58 -05:00
KeyboardKeyPlaneView.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
KeyboardLanguage.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
KeyboardLaunchWork.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
KeyboardLayout.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardStripView.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
LanguageLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
never-suggest.tsv iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
OffensiveWords.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
ReturnKeyStyle.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
ShiftStateMachine.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SmartPunctuation.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
SwipeDecoder.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
SwipeTyping.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TextChecking.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
TrackpadCursor.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
TypingDecoder.swift ios keyboard: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -05:00
TypingJournal.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
TypingJournalLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00