Toolbelt.Blazor.HotKeys
Toolbelt.Blazor.HotKeys copied to clipboard
Feature request: Component instead service
trafficstars
Hi thanks for great work.
I wonder, whether it would be good idea to create component that would wrap the service and take care of disposing the context.
Something like:
<HotKeys Initialize="InitializeHotkeys" />
or
<HotKeys Bindings="..." />
or even
<HotKeys>
<HotKeyEntry Modifiers="Shift" Key="Keys.Slash" Action="ToggleHotkeysCheatSheetVisibility" Description="Cheatsheet" />
</HotKeys>
Thank you for your proposal!
... take care of disposing the context.
Oh, that is a good idea! 👍 I didn't come up with that.
I'll consider implementing a Hotkeys feature as a component.
However, currently, I'm busy upgrading my own OSS libraries to make them compatible with .NET 6, so please give me a few weeks.
BTW, it would be great blog post - what it takes to upgrade to .NET 6