-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressiona: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemscustomer: soldierf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
Milestone
Description
In most UIs, TAB can be input to switch between input fields. This is necessary to enable accessible applications and also application that behave correctly with an external keyboard. This behavior doesn't typically ALSO input tab into the input field. In flutter tab performs both:
- switch focus
- input whitespace text into text fields.
If the first is done, the second should not.
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: 'My app', // used by the OS task switcher
home: Material(child: content())));
}
Widget content() {
var _focus1 = FocusNode();
var _focus2 = FocusNode();
return Column(
children: [
TextField(
focusNode: _focus1,
textInputAction: TextInputAction.next,
),
TextField(
focusNode: _focus2,
textInputAction: TextInputAction.next,
),
],
);
}
Is with the latest public flutter, Android emulator and Nexus 7 tablet VM.
flutter doctor -v
[✓] Flutter (Channel master, v1.13.3-pre.23, on Linux, locale en_US.UTF-8)
• Flutter version 1.13.3-pre.23 at /home/sir/development/flutter
• Framework revision c06bf6503a (3 days ago), 2019-12-13 17:42:35 -0500
• Engine revision e0e0ac0a68
• Dart version 2.8.0 (build 2.8.0-dev.0.0 45db297095)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/sir/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/sir/Android/Sdk
• Java binary at: /home/sir/soft/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 3.5)
• Android Studio at /home/sir/soft/android-studio
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at /snap/intellij-idea-ultimate/188
• Flutter plugin version 42.1.4
• Dart plugin version 193.5731
[✓] IntelliJ IDEA Ultimate Edition (version 2019.2)
• IntelliJ at /snap/intellij-idea-ultimate/181
• Flutter plugin version 41.1.4
• Dart plugin version 192.7761
[✓] Connected device (3 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• Chrome • chrome • web-javascript • Google Chrome 76.0.3809.132
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressiona: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemscustomer: soldierf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on