feat(typing): improve key hit accuracy and bump to 1.6.1

Add gap-filling hit regions, release-to-commit with slide-to-reselect,
touch intent offset, and full-pinyin next-key bias; cut release 1.6.1 (build 45).
This commit is contained in:
Rocky
2026-08-05 22:47:20 +08:00
parent 717902716a
commit 2ed16e1fbf
13 changed files with 1395 additions and 233 deletions
@@ -45,10 +45,18 @@ public struct TypingCandidate: Identifiable, Equatable, Sendable {
/// Snapshot the UI observes while composing.
public struct TypingComposition: Equatable, Sendable {
public var preedit: String
/// Raw key sequence from the engine (ASCII). Prefer this over `preedit`
/// for spelling / next-key logic preedit may include separators.
public var rawInput: String
public var candidates: [TypingCandidate]
public init(preedit: String = "", candidates: [TypingCandidate] = []) {
public init(
preedit: String = "",
rawInput: String = "",
candidates: [TypingCandidate] = []
) {
self.preedit = preedit
self.rawInput = rawInput
self.candidates = candidates
}