flutter/packages
Bruno Leroux 6f61f6135f
Activate shortcuts based on NumLock state (#145146)
## Description

The PR updates `SingleActivator` in order to add a parameter for specifying that a shortcut depends on <kbd>NumLock</kbd> key state. 

Somewhat similarly to what is possible with common modifiers expect that a boolean is not enough in this case because: by default, a shortcut should ignore the <kbd>NumLock</kbd> state and it should be possible to define shortcuts that require <kbd>NumLock</kbd> to be locked and other that require it to be unlocked.

@gspencergoog I considered defining a new `ShortcutActivator` implementation for this, but I thinks that adding the feature directly to `SingleActivator` results in a cleaner API.

## Related Issue

Fixes https://github.com/flutter/flutter/issues/145144
Preparation for https://github.com/flutter/flutter/issues/144936

## Tests

Adds 3 tests.
2024-03-19 08:27:50 +00:00
..
flutter Activate shortcuts based on NumLock state (#145146) 2024-03-19 08:27:50 +00:00
flutter_driver Manually roll pub packages (#145005) 2024-03-12 19:53:57 +00:00
flutter_goldens Factor out use of "print" in flutter_goldens (#144846) 2024-03-17 01:56:19 +00:00
flutter_localizations Roll pub packages manually (#145170) 2024-03-15 14:12:22 +00:00
flutter_test Turning if chains into shorter switch statements (#144977) 2024-03-13 17:16:17 +00:00
flutter_tools Roll pub packages + update DAP tests (#145349) 2024-03-18 21:39:21 +00:00
flutter_web_plugins Upgrade vm_service. (#144845) 2024-03-08 17:09:07 -08:00
fuchsia_remote_debug_protocol Manually roll pub packages (#145005) 2024-03-12 19:53:57 +00:00
integration_test Manually roll pub packages (#145005) 2024-03-12 19:53:57 +00:00
analysis_options.yaml Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00