You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[web] Latest Flutter sync seems to have broken RawKeyboard #33857
FLUTTER DOCTOR:
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.16.4-pre.18, on Mac OS X 10.15.4 19E266, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.43.2)
[✓] Connected device (5 available)
• No issues found!
EXCEPTION:
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
The following assertion was thrown during a platform message callback:
Assertion failed: file:///Users/joshua/flutter/packages/flutter/lib/src/widgets/shortcuts.dart:76:16
keys.isNotEmpty
is not true
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 flutter doctor -v and a minimal reproduction of the issue.
Activity
ilshookim commentedon Mar 30, 2020
[web] when I pressed 'caps lock' button in MacBook keyboard,
I saw almost same problem today in chrome(web).
ASK: This issue is clear at this time in flutter for web?
CODE:
body: RawKeyboardListener(
focusNode: textNode,
onKey: (RawKeyEvent rawKeyEvent) {
try {
bool keyDown = false; bool keyUp = false;
if (rawKeyEvent.runtimeType == RawKeyDownEvent) keyDown = true;
if (rawKeyEvent.runtimeType == RawKeyUpEvent) keyUp = true;
if (keyUp) {
logger.fine('keyDown=$keyDown, keyUp=$keyUp, rawKeyEvent=${rawKeyEvent.logicalKey.debugName}');
if (rawKeyEvent.logicalKey.keyId == LogicalKeyboardKey.backspace.keyId) {
logger.fine('keyId=${rawKeyEvent.logicalKey.keyId}');
}
}
}
catch (exc) {
logger.warning('RawKeyboardListener.onKey: (RawKeyEvent): exc=$exc');
}
},
child: Container(
child: Text('raw keyboard listener enabled')
),
),
FLUTTER DOCTOR:
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.16.4-pre.18, on Mac OS X 10.15.4 19E266, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.43.2)
[✓] Connected device (5 available)
• No issues found!
EXCEPTION:
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
The following assertion was thrown during a platform message callback:
Assertion failed: file:///Users/joshua/flutter/packages/flutter/lib/src/widgets/shortcuts.dart:76:16
keys.isNotEmpty
is not true
When the exception was thrown, this was the stack:
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 195:49 throw
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 26:3 assertFailed
packages/flutter/src/widgets/shortcuts.dart 76:20 fromSet
packages/flutter/src/widgets/shortcuts.dart 178:63 fromSet
packages/flutter/src/widgets/shortcuts.dart 297:63 handleKeypress
packages/flutter/src/widgets/shortcuts.dart 459:20 [_handleOnKey]
packages/flutter/src/widgets/focus_manager.dart 1536:43 [_handleRawKeyEvent]
packages/flutter/src/services/raw_keyboard.dart 531:17 _handleKeyEvent
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 86:54 runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 125:12 _async
packages/flutter/src/services/raw_keyboard.dart 500:34 [_handleKeyEvent]
packages/flutter/src/services/platform_channel.dart 74:49
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 86:54 runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 125:12 _async
packages/flutter/src/services/platform_channel.dart 73:57
packages/flutter/src/services/binding.dart 199:33 handlePlatformMessage
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 86:54 runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 125:12 _async
packages/flutter/src/services/binding.dart 190:37 handlePlatformMessage
lib/_engine/engine/window.dart 604:13 _invoke3
lib/_engine/engine/window.dart 303:5 invokeOnPlatformMessage
lib/_engine/engine/keyboard.dart 91:12 [_handleHtmlEvent]
lib/_engine/engine/keyboard.dart 43:7
════════════════════════════════════════════════════════════════════════════════════════════════════
lock commentedon Apr 15, 2020
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
flutter doctor -vand a minimal reproduction of the issue.