hotfix(ai-scribe): fix Safari keyboard input issue in AI Scribe search bar dialog

This commit is contained in:
dab246
2025-12-22 15:24:36 +07:00
committed by Dat H. Pham
parent 2b70b660f0
commit 29b54a76ee
5 changed files with 35 additions and 15 deletions
@@ -101,6 +101,9 @@ extension HandleAiScribeInComposerExtension on ComposerController {
}
Future<void> openAIAssistantModal(Offset? position, Size? size) async {
clearFocusRecipients();
clearFocusSubject();
final fullText = await _getTextOnlyContentInEditor();
await AiScribeModalManager.showAIScribeMenuModal(
@@ -24,7 +24,13 @@ class ComposerAiScribeSelectionOverlay extends StatelessWidget {
imagePaths: controller.imagePaths,
onSelectAiScribeSuggestionAction:
controller.handleAiScribeSuggestionAction,
onTapFallback: _clearComposerInputFocus,
);
});
}
void _clearComposerInputFocus() {
controller.clearFocusRecipients();
controller.clearFocusSubject();
}
}