-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing shiftkey to insert ( or ) in textfield crashes flutter application #108646
Comments
cc @dkwingsmt looks like it's hitting this assert: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/services/hardware_keyboard.dart#L421 |
same issue. Have you found a solution? |
Long press will trigger the issue. flutter: _eventFromData KeyData(key down, physical: 0x700e0, logical: 0x200000100 (Flutter), character: <none>)
flutter: handleKeyEvent KeyDownEvent#bdb23(physicalKey: PhysicalKeyboardKey#700e0(usbHidUsage: "0x000700e0", debugName: "Control Left"), logicalKey: LogicalKeyboardKey#00100(keyId: "0x200000100", keyLabel: "Control Left", debugName: "Control Left"), character: null, timeStamp: 1495:33:25.625872) [0][{}]
flutter: _eventFromData KeyData(key up, physical: 0x700e0, logical: 0x200000100 (Flutter), character: <none>, synthesized)
flutter: handleKeyEvent KeyUpEvent#aaab6(physicalKey: PhysicalKeyboardKey#700e0(usbHidUsage: "0x000700e0", debugName: "Control Left"), logicalKey: LogicalKeyboardKey#00100(keyId: "0x200000100", keyLabel: "Control Left", debugName: "Control Left"), character: null, timeStamp: 1495:33:26.129481, synthesized) [1][{PhysicalKeyboardKey#700e0(usbHidUsage: "0x000700e0", debugName: "Control Left"): LogicalKeyboardKey#00100(keyId: "0x200000100", keyLabel: "Control Left", debugName: "Control Left")}]
flutter: _eventFromData KeyData(key repeat, physical: 0x700e0, logical: 0x200000100 (Flutter), character: <none>)
flutter: handleKeyEvent KeyRepeatEvent#14d2a(physicalKey: PhysicalKeyboardKey#700e0(usbHidUsage: "0x000700e0", debugName: "Control Left"), logicalKey: LogicalKeyboardKey#00100(keyId: "0x200000100", keyLabel: "Control Left", debugName: "Control Left"), character: null, timeStamp: 1495:33:26.129573) [0][{}] This will happen for 'shift' or 'ctrl' key. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
After upgrading flutter version from 3.1.0-9.0.pre to 3.3.0-0.1.pre, this bug appeared.
I am using windows 11
Steps to Reproduce
flutter run
on the code sampleExpected results:
Actual results:
2022-07-30.06-40-32.mp4
Code sample
flutter doctor -v
[√] Flutter (Channel beta, 3.3.0-0.1.pre, on Microsoft Windows [Version 10.0.22622.436], locale ko-KR) • Flutter version 3.3.0-0.1.pre on channel beta at C:\Users\kimjuhwan\Documents\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision d952ca8 (2 days ago), 2022-07-27 10:33:00 -0700 • Engine revision fd131c385e • Dart version 2.18.0 (build 2.18.0-271.4.beta) • DevTools version 2.15.0[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at C:\Users\kimjuhwan\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.5)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.1.32414.318
• Windows 10 SDK version 10.0.20348.0
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\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
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] IntelliJ IDEA Ultimate Edition (version 2021.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.2
• Flutter plugin version 64.0.3
• Dart plugin version 212.5632
[√] IntelliJ IDEA Ultimate Edition (version 2022.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2
• Flutter plugin version 69.0.4
• Dart plugin version 221.6008.15
[√] VS Code (version 1.61.1)
• VS Code at C:\Users\kimjuhwan\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22622.436]
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.114
• Edge (web) • edge • web-javascript • Microsoft Edge 103.0.1264.49
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Logs
The text was updated successfully, but these errors were encountered: