diff --git a/frontend/lib/views/chat/chat_input_field.dart b/frontend/lib/views/chat/chat_input_field.dart index a54543b1abd9..c3dc4601efc9 100644 --- a/frontend/lib/views/chat/chat_input_field.dart +++ b/frontend/lib/views/chat/chat_input_field.dart @@ -23,6 +23,7 @@ class _ChatInputFieldState extends State { // Controller for the TextField to manage its content final TextEditingController _controller = TextEditingController(); final FocusNode _focusNode = FocusNode(); + final FocusNode _throwawayFocusNode = FocusNode(); @override void initState() { @@ -44,7 +45,7 @@ class _ChatInputFieldState extends State { final prefs = await SharedPreferences.getInstance(); final showContinuousModeDialog = prefs.getBool('showContinuousModeDialog') ?? true; - + FocusScope.of(context).requestFocus(_throwawayFocusNode); if (showContinuousModeDialog) { showDialog( context: context,