feat(keyboard): add clipboard AI skills, hint keywords, and voice session fixes
Idle chips show entities with category icons; a fresh copy surfaces Reply/Summarize/Translate; abort/cancel/empty-tap no longer leave the mic stuck.
This commit is contained in:
@@ -446,6 +446,9 @@ public final class KeyboardViewController: UIInputViewController {
|
||||
flowCoordinator.onAIRecognitionStarted = { [weak self] utteranceID in
|
||||
self?.aiKeyboardCoordinator.recognitionStarted(utteranceID)
|
||||
}
|
||||
flowCoordinator.onAIGeneratingStarted = { [weak self] utteranceID in
|
||||
self?.aiKeyboardCoordinator.generatingStarted(utteranceID)
|
||||
}
|
||||
flowCoordinator.onAITranscript = { [weak self] transcript, utteranceID, status in
|
||||
self?.aiKeyboardCoordinator.receiveTranscript(
|
||||
transcript,
|
||||
@@ -465,6 +468,9 @@ public final class KeyboardViewController: UIInputViewController {
|
||||
flowCoordinator.onAIFailure = { [weak self] message, utteranceID in
|
||||
self?.aiKeyboardCoordinator.fail(message, utteranceID: utteranceID)
|
||||
}
|
||||
flowCoordinator.onAICancelled = { [weak self] in
|
||||
self?.state.aiSession.cancelCurrentWork()
|
||||
}
|
||||
_ = textInserter.recoverPendingEditTransactionIfNeeded()
|
||||
|
||||
cursorDrag = CursorDragController(
|
||||
@@ -511,6 +517,9 @@ public final class KeyboardViewController: UIInputViewController {
|
||||
state.submitAIHint = { [weak self] card in
|
||||
self?.aiKeyboardCoordinator.submitHintCard(card)
|
||||
}
|
||||
state.submitAIClipboardSkill = { [weak self] skill in
|
||||
self?.aiKeyboardCoordinator.submitClipboardSkill(skill)
|
||||
}
|
||||
state.openSettings = { [weak self] in self?.openHostApp() }
|
||||
state.openInputMethodSetup = { [weak self] in self?.openHostApp(path: "deployrime") }
|
||||
state.openClipboardSettings = { [weak self] in
|
||||
|
||||
Reference in New Issue
Block a user