Skip to content
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

Fix CallbackShortcuts to only call shortcuts when triggered #93693

Merged

Conversation

gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented Nov 16, 2021

Description

This fixes the CallbackShortcuts class to only call callbacks when the shortcut is triggered by the appropriate event, instead of whenever the shortcut accepts the event.

Related Issues

Tests

  • Added tests that make sure that only the shortcuts with the appropriate trigger keys are triggered.

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Nov 16, 2021
@google-cla google-cla bot added the cla: yes label Nov 16, 2021
Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dtat1991
Copy link

Doesn't work

@gspencergoog
Copy link
Contributor Author

@dtat1991 Can you be more specific?

@esDotDev
Copy link

Tested and seems to be working good for me now, thx @gspencergoog !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CallbackShortcuts with SingleActivator does not work as expected
5 participants