-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#37280Labels
a: 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.found in release: 3.5Found to occur in 3.5Found to occur in 3.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically
Description
Steps to Reproduce
- Execute
flutter run -d chromeon the code sample below - Select the text field and hold
AltGrkey. - Mouve the mouse
Expected results: No exception
Actual results: Exception thrown
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 MaterialApp(
home: Scaffold(
body: Container(
alignment: Alignment.center,
padding: const EdgeInsets.all(16),
child: const TextField(),
),
),
);
}
}
Exception
Error: Assertion failed:
file:///home/bruno/Bruno/Nevercode/flutter/packages/flutter/lib/src/services/hardware_keyboard.dart:435:16
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/services/hardware_keyboard.dart 435:56 <fn>
packages/flutter/src/services/hardware_keyboard.dart 442:14 [_assertEventIsRegular]
packages/flutter/src/services/hardware_keyboard.dart 535:5 handleKeyEvent
packages/flutter/src/services/hardware_keyboard.dart 881:29 handleKeyData
lib/_engine/engine/platform_dispatcher.dart 272:33 <fn>
lib/_engine/engine/platform_dispatcher.dart 1153:13 invoke
lib/_engine/engine/platform_dispatcher.dart 271:7 invokeOnKeyData
lib/_engine/engine/keyboard_binding.dart 145:39 [_onKeyData]
lib/_engine/engine/keyboard_binding.dart 654:27 [_synthesizeKeyUpEvent]
lib/_engine/engine/keyboard_binding.dart 636:7 [_synthesizeModifierIfNeeded]
lib/_engine/engine/keyboard_binding.dart 576:5 synthesizeModifiersIfNeeded
lib/_engine/engine/pointer_binding.dart 625:24 [_checkModifiersState]
lib/_engine/engine/pointer_binding.dart 618:9 <fn>
lib/_engine/engine/pointer_binding.dart 303:16 loggedHandler
lib/_engine/engine/pointer_binding.dart 188:80 <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 352:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 357:39 dcall
Metadata
Metadata
Assignees
Labels
a: 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.found in release: 3.5Found to occur in 3.5Found to occur in 3.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically
Type
Projects
Status
Done (PR merged)