tom8zds
tom8zds
get the same issue on official example [logicalkeyboardkey](https://api.flutter.dev/flutter/services/LogicalKeyboardKey-class.html) modify the build method by require focus before return and look like this ``` @override Widget build(BuildContext context) { final TextTheme textTheme...
flutter doctor -v [✓] Flutter (Channel stable, 1.22.4, on Linux, locale zh_CN.UTF-8) • Flutter version 1.22.4 at /home/yunjie/snap/flutter/common/flutter • Framework revision 1aafb3a8b9 (11 天前), 2020-11-13 09:59:28 -0800 • Engine revision...
Code ``` /// Flutter code sample for PhysicalKeyboardKey // This example shows how to detect if the user has selected the physical key // to the right of the CAPS...
android, here is what i get on sdk emulator | | | |---|---| |||
simulate key press not help, seems only calling keyboard is functional, because hardkeys will call virtual keyboard too ``` Future pressKey() async { await simulateKeyDownEvent(LogicalKeyboardKey.keyA); await simulateKeyUpEvent(LogicalKeyboardKey.keyA); print('A'); } @override...
> I believe this is an issue with the emulator only. When I try either your initial code, or the modified example code, both of them work properly on an...