New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogicalKeyboardKey.meta in shortcut triggers action intent without pressing the other LogicalKeySet #103964
Comments
|
Hi @nombrekeff, Thanks for filing the issue. I am able to reproduce the issue on stable 3.0 and the master 3.1 channel. On releasing steps to reproduce
This is reproducible only on web and works fine on macOS desktop flutter doctor -v (mac) |
|
cc: @dkwingsmt |
|
Yeah this is a known flaw of For explanation, see #97589 (comment). |
|
Ohh, okay thanks a lot! Makes sense! |
|
Just a last doubt, how would we go about it if we needed to have multiple triggers? Let's say I need |
|
You should be able to implement a subclass of ShortcutActivator for it. We didn't put an official implementation of this kind of key combinations due to low demand. (Although this interface is not as flexible as I wanted such as not supporting stateful activators, like Cmd+C then Cmd+B. We're thinking of a solution.) |
|
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 |
Steps to Reproduce
flutter run -d chromeon the code sampleExpected results:
I expected the action to be dispatched ONLY when cmd+b is pressed, not by only pressing cmd. Like when using control instead of cmd, which works as expected.
Actual results:
If I press cmd+b and quickly press cmd again, the action is dispatched 2 times, instead of one. This is not the case using control+b and then only control.
Code sample
Logs
The text was updated successfully, but these errors were encountered: