Skip to content

iOS keyboard: Apple's key flicks on the docked iPad - #2549

Open
R44VC0RP wants to merge 1 commit into
devfrom
ios-ipad-key-flicks
Open

R44VC0RP wants to merge 1 commit into
devfrom
ios-ipad-key-flicks

Conversation

@R44VC0RP

Copy link
Copy Markdown
Collaborator

TestFlight build 147, iPad Air 11-inch, iPadOS 27.3: "On ipad number row is not visible - broken, and flick for symbol is not working either." Not for merging without Ryan.

What changes

  • Key flicks on docked iPads: Apple's characters, drawn like Apple's (black box, iPad mini, iPadOS 26.5 and 27.2).
    • English and German: 1 to 0 over row 1, @ # $ & * ( ) ' " over row 2, % - + = / ; : over row 3.
    • French: AZERTY's own characters.
    • 123 page: the #+= page's character over each symbol (€ over @, § over %).
    • Other languages: only the digits row (Apple's own characters for them are unmeasured).
  • The pull:
    • The character slides into place as the key is pulled down. Let go past half way (17 pt) and it goes in as typed; short of that, or pulled back, the letter goes in.
    • The pull keeps its key: no slide onto the row below, and no swipe started.
    • Rollover commits the flick. With Reduce Motion the character swaps in with no slide.
    • Never on the floating keyboard or an iPhone.
  • Settings › Keyboard on an iPad: Key flicks (on by default) replaces Number row, which is hidden there because it does nothing on an iPad. A keyboard extension can't read Apple's own Enable Key Flicks switch (the Custom Keyboard guide: no access to the general keyboard settings), so Hex needs its own. New strings have Simplified Chinese.
  • Typing logs: ui flick and insert src: flick, documented in typing-logs.md.

What isn't measured

  • When Apple commits: on the simulator Apple's keys animate the pull the same way, but no synthetic touch ever made one type its character. Hex's half-way threshold is a choice, not a measurement.
  • Turned iPads: not captured.
  • Apple's 11- and 13-inch rows: Hex keeps drawing the mini's rows there, as before.

Ryan's to decide

  • A 13-inch number row (Apple's 13-inch has one: ~ and 1 to 0 with their shifted symbols, plus tab, caps lock and [ ] \ ; '). It needs the 13-inch's own five rows: a row builder, a tab key, a caps lock key and a fifth row's metrics, measured like the mini. Roughly 1–2 days.
  • A number row of Hex's own on the mini and 11-inch: Apple has none there. With flicks, the digits are already on row 1, and a row would make Hex's keyboard, already taller than Apple's, taller again. My pick: no.

Verified (Studio)

  • Suite: 976 tests, 0 failures, 4 skipped.
  • code-shape.py --check passes.
  • Tests in existing files: KeyboardLayoutTests.swift (flick characters per language and page), FullKeyboardEngineTests+SwipeTyping (pull, short pull, pulled back, past the row below, rollover, switch off, iPhone none).
  • Simulators: iPad mini (26.5, 27.2), Air 11-inch, Pro 13-inch beside Apple's. A pull typed 3, a short one E, and "Room 415" was typed with flicks (recorded).

…w switch there

TestFlight build 147 (iPad Air 11-inch): "On ipad number row is not visible - broken, and
flick for symbol is not working either." Settings › Keyboard showed Number row on an iPad,
where it does nothing (the iPad keeps Apple's rows), and Hex's keys had none of Apple's key
flicks.

Docked iPad letter keys now carry Apple's flick characters (iPad mini, iPadOS 26.5 and 27.2,
black box): 1 to 0 over row 1, @ # $ & * ( ) ' " over row 2, % - + = / ; : over row 3 in
English and German, AZERTY's own in French, and the #+= page's characters over the 123
page's symbols. Pulling a key down slides its character into place as Apple's does; let go
past half way (17 pt) and it goes in as a typed character, short of it or pulled back, the
letter. The pull keeps its key and never starts a swipe; rollover commits it; Reduce Motion
swaps without the slide. Apple's Enable Key Flicks can't be read by an extension, so
Settings › Keyboard has Key flicks (on by default), shown on an iPad in place of Number row,
which is hidden there. Typing logs: ui flick and insert src flick.

Verified: iOS suite on the Studio, 976 tests, 0 failures, 4 skipped; code-shape.py --check
passes; iPad mini (26.5, 27.2), Air 11-inch and Pro 13-inch simulators beside Apple's, a pull
typing 3 and a short one E, and "Room 415" recorded with flicks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant