-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#50779Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.needs repro infoAutomated crash report whose cause isn't yet knownAutomated crash report whose cause isn't yet knownplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Steps to reproduce
- Run the sample code on web, on windows.
- Tap on the textfield to give it focus
- Press Windows logo key + . (period)
- Select an emoji and hit ENTER
Expected results
The selected emoji is inserted in the textfield
Actual results
The emoji in inserted, but the following exception happens:
Error: Assertion failed: file:///c:/git/flutter/packages/flutter/lib/src/services/hardware_keyboard.dart:512:16
_pressedKeys[event.physicalKey] == event.logicalKey
"A KeyUpEvent is dispatched, but the state shows that the physical key is pressed on a different logical key. 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: KeyUpEvent#fd285(physicalKey: PhysicalKeyboardKey#700e3(usbHidUsage: \"0x000700e3\", debugName: \"Meta Left\"), logicalKey: LogicalKeyboardKey#602a3(keyId: \"0x10000070f\", keyLabel: \"Process\", debugName: \"Process\"), character: null, timeStamp: 0:00:28.422599, synthesized) and the recorded logical key LogicalKeyboardKey#4b191(keyId: \"0x200000106\", keyLabel: \"Meta Left\", debugName: \"Meta Left\")"
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 38:3 assertFailed
packages/flutter/src/services/hardware_keyboard.dart 512:56 <fn>
packages/flutter/src/services/hardware_keyboard.dart 519:14 [_assertEventIsRegular]
packages/flutter/src/services/hardware_keyboard.dart 643:5 handleKeyEvent
packages/flutter/src/services/hardware_keyboard.dart 1087:11 handleKeyData
lib/_engine/engine/platform_dispatcher.dart 315:33 <fn>
lib/_engine/engine/platform_dispatcher.dart 1346:5 invoke
lib/_engine/engine/platform_dispatcher.dart 314:7 invokeOnKeyData
lib/_engine/engine/keyboard_binding.dart 164:30 [_onKeyData]
lib/_engine/engine/keyboard_binding.dart 584:36 <fn>
lib/_engine/engine/keyboard_binding.dart 462:11 [_handleEvent]
lib/_engine/engine/keyboard_binding.dart 587:7 handleEvent
lib/_engine/engine/keyboard_binding.dart 98:7 <fn>
lib/_engine/engine/keyboard_binding.dart 143:9 loggedHandler
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 550:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 555:39 dcallCode sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: TextField(),
),
),
);
}
}
Screenshots or Video
Screenshots / Video demonstration
2024-01-13.13-25-09.mp4
Logs
Logs
No other relevant outputFlutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.18.0-19.0.pre.125, on Microsoft Windows [versÆo 10.0.22000.2538], locale pt-BR)
• Flutter version 3.18.0-19.0.pre.125 on channel master at c:\git\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 126302dfb4 (2 hours ago), 2024-01-09 11:45:07 -0500
• Engine revision b3c8597df0
• Dart version 3.4.0 (build 3.4.0-9.0.dev)
• DevTools version 2.31.0
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Users\angelo\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.5.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.5.33516.290
• Windows 10 SDK version 10.0.22621.0
[✓] Android Studio (version 2021.2)
• 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.12+7-b1504.28-7817840)
[✓] VS Code (version 1.85.1)
• VS Code at C:\Users\angelo\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.80.0
[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [versÆo 10.0.22000.2538]
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.200
• Edge (web) • edge • web-javascript • Microsoft Edge 120.0.2210.121
[✓] Network resources
• All expected network resources are available.
• No issues found!Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.needs repro infoAutomated crash report whose cause isn't yet knownAutomated crash report whose cause isn't yet knownplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Type
Projects
Status
Done (PR merged)