fix: make text fields focusable in traversal

This commit is contained in:
edde746
2026-05-06 12:06:55 +02:00
parent c75c87f527
commit cf4fc74d68
2 changed files with 65 additions and 1 deletions
+4 -1
View File
@@ -171,7 +171,10 @@ abstract class _FocusableTextInputBase extends StatelessWidget {
Widget buildFocusableInput(BuildContext context, Widget Function(bool usesTvKeyboard) builder) {
final usesTvKeyboard = _hasTvKeyboard;
return Focus(
canRequestFocus: enabled,
// This wrapper only intercepts key events bubbling from the input; the
// real TextField/TextFormField must remain the traversable focus target.
canRequestFocus: false,
skipTraversal: true,
onKeyEvent: (node, event) => _handleKey(context, node, event),
child: builder(usesTvKeyboard),
);