Repository navigation
Framework does not handle key events sent by iOS simulator ( Xcode 12.2 ) #68741
Copy link
Copy link
Closed
Closed
Copy link
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 problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
Currently it looks like the framework does not handle iOS key events (
| throw FlutterError('Unknown keymap for key events: $keymap'); |
An Observatory debugger and profiler on iPhone SE (2nd generation) is available at: http://127.0.0.1:59659/-Rhr2AmeKQM=/
flutter: ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
flutter: The following assertion was thrown during a platform message callback:
flutter: Unknown keymap for key events: ios
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 new RawKeyEvent.fromMessage (package:flutter/src/services/raw_keyboard.dart:346:9)
flutter: #1 RawKeyboard._handleKeyEvent (package:flutter/src/services/raw_keyboard.dart:595:43)
flutter: #2 BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:74:49)
flutter: #3 BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:73:47)
flutter: #4 _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283:33)
flutter: #5 _invoke3.<anonymous closure> (dart:ui/hooks.dart:274:15)
flutter: #9 _invoke3 (dart:ui/hooks.dart:273:10)
flutter: #10 _dispatchPlatformMessage (dart:ui/hooks.dart:154:5)
flutter: (elided 3 frames from dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: Another exception was thrown: Unknown keymap for key events: ios
flutter: Another exception was thrown: Unknown keymap for key events: ios
Reactions are currently unavailable
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 problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallyiOS applications specifically
Activity
[-]iOS simulator sends key events on Xcode 12.2[/-][+]Framework does not handle key events sent by iOS simulator ( Xcode 12.2 )[/+]DanielEdrisian commentedon Oct 21, 2020
I'm experiencing the same issue
Edit: This is breaking https://github.com/flutter/platform_tests/tree/master/ios_widget_catalog_compare
xster commentedon Oct 22, 2020
I can reproduce. Seems like touch handling stopped working altogether on simulator. Even on iOS 13.
gspencergoog commentedon Oct 22, 2020
@xster Touch handling? Or just key events?
gspencergoog commentedon Oct 22, 2020
My suspicion is that because we merged the engine side of this change, but not the framework side (because the tree was then closed), perhaps there were undesired side effects. I haven't tested that hypothesis yet, though.
gspencergoog commentedon Oct 22, 2020
The fix could be as simple as merging the framework side, which I will do anyhow as soon as the tree is open.
xster commentedon Oct 22, 2020
Touch handling is broken as well
gspencergoog commentedon Oct 22, 2020
OK, I'm able to fix the key event problem by just applying the framework side of the changes. I wasn't able to reproduce the touch handling part of the problem, though. Perhaps it's another issue?
gspencergoog commentedon Oct 22, 2020
How are you reproducing the touch handling part of the problem?
xster commentedon Oct 22, 2020
doh! sorry, false alarm from me. It wasn't responding but it was actually that my simulator was frozen :S
I cannot reproduce on master head. Tentatively lowering back to P4.
@DanielEdrisian were you seeing issues with touch handling transmissions in the comparison tool or was it key entries?
github-actions commentedon Aug 10, 2021
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.