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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user