-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.22Found to occur in 3.22Found to occur in 3.22fyi-webFor the attention of Web platform teamFor the attention of Web platform teamhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
Description
Steps to reproduce
Use the numeric keypad with any EditableText widget
Expected results
Numbers should be correctly entered in the field, instead an error is thrown.
This only happens with digits from the numeric keypad.
Actual results
The following assertion was thrown during a platform message callback:
Assertion failed:
file:///home/something/flutter/packages/flutter/lib/src/services/hardware_keyboard.dart:505:16
!_pressedKeys.containsKey(event.physicalKey)
"A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed. If this
occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please
ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This
was the event: KeyDownEvent#ea691(physicalKey: PhysicalKeyboardKey#70059(usbHidUsage:
\"0x00070059\", debugName: \"Numpad 1\"), logicalKey: LogicalKeyboardKey#00cb9(keyId:
\"0x200000231\", keyLabel: \"Numpad 1\", debugName: \"Numpad 1\"), character: \"1\", timeStamp:
0:02:48.590899)"
Code sample
Code sample
[Paste your code here]Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.0, on Ubuntu 23.10 6.5.0-35-generic, locale en_US.UTF-8)
• Flutter version 3.22.0 on channel stable at /home/florian/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (7 days ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /home/florian/Android/Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = /home/florian/Android/Sdk
• Java binary at: /home/florian/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 16.0.6 (15)
• cmake version 3.27.4
• ninja version 1.11.1
• pkg-config version 1.8.1
[!] Android Studio (version unknown)
• Android Studio at /home/florian/android-studio
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to determine Android Studio version.
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.89.1)
• VS Code at /snap/code/current/usr/share/code
• Flutter extension version 3.88.0
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 23.10 6.5.0-35-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.207
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.slgobinath and talski
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.22Found to occur in 3.22Found to occur in 3.22fyi-webFor the attention of Web platform teamFor the attention of Web platform teamhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
Type
Projects
Status
Done (PR merged)