KeyInterceptorService: Add option to ignore repeat events when holding down keys#12376
Conversation
…net callback for repeated event when holding down a key
Changed the default value of IgnoreDownRepeats to be unset.
Sadly, we don't have JS unit tests like Jest, Jasmine, Playwright etc.
Yes, that would be ideal. |
|
LGTM, just add |
|
Added the sample in the Services folder. Do you perhaps have some tips on how to develop in this repository? |
Unfortunately there’s no easy way around the build time without more powerful hardware. One possible workaround is to skip parts of the build (like JS, CSS, or docs) if you only care about core changes, but currently no built-in way to disable parts of the build. |
Add
KeyOptions.IgnoreDownRepeatsto prevent from invoking the .NET callback when the subscriber is only interested in the initial keydown event and not in the repeat stream from holding down the key.Usage example:
Checklist:
I could not find any JS testing, are those omitted?
Should a sample be created in
MudBlazor.UnitTests.Viewerto at least be able to see it in action?