Closed guibarrette closed 3 years ago
I just tested with the Flutter Stable release as of today (2.2.3), this bug is also present there. Therefore, it shouldn't be caused by the new scheme for keyboard logical key ID as I first thought, but something else.
Sounds like the labels for the logic keys became upper case at some point; the conversion to a channel representation probably just needs to lower-case the label.
Hi @stuartmorgan , thanks for your help, that was it! I just did a pull request to fix it. Thanks for your work!
Describe the bug I'm not sure when this bug appeared, it may be because of the new scheme for keyboard logical key ID, but I'm now seeing a bug regarding the registered shortcuts from the menubar plugin where a SHIFT modifier key is always attached to the shortcut when using a key binding that use an alphabetical key. It is not present with numerical keys.
For example, here I've added comments to the shortcuts to specify how they are registered:
Here are the screenshots showing the output of this code:
Showing the first 2 alphabetical shortcuts, which adds the SHIFT modifier:![Capture d’écran, le 2021-07-21 à 21 23 10](https://user-images.githubusercontent.com/4761756/126580266-afa5a22f-9917-4bfb-9aa4-8e2a9e1df666.png)
Showing the numerical shortcut, which is OK:![Capture d’écran, le 2021-07-21 à 21 19 44](https://user-images.githubusercontent.com/4761756/126580286-829e2bea-0ab3-446f-9996-505dd96893e1.png)
I'm using the plugin on macOS, so I can't say if this bug is also present on Windows and Linux
Log
``` $ flutter doctor -v [✓] Flutter (Channel master, 2.4.0-5.0.pre.122, on Mac OS X 10.14.6 18G9216 darwin-x64, locale fr-CA) • Flutter version 2.4.0-5.0.pre.122 at /Volumes/SPCC-SSD-GB/Programmation/Flutter/_SDKs/_NowUsing/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5acf7e98f1 (il y a 23 heures), 2021-07-20 19:58:58 -0700 • Engine revision 9b270621e4 • Dart version 2.14.0 (build 2.14.0-338.0.dev) [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3) ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [!] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.3.1, Build version 11C505 ✗ Xcode 11.3.1 out of date (12.0.1 is recommended). Download the latest version or update via the Mac App Store. • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 43.0.1 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [✓] VS Code (version 1.58.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.24.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • Mac OS X 10.14.6 18G9216 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.164 ! Doctor found issues in 2 categories. ```