Toolbelt.Blazor.HotKeys icon indicating copy to clipboard operation
Toolbelt.Blazor.HotKeys copied to clipboard

Feature request: Component instead service

Open Liero opened this issue 4 years ago • 2 comments
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>

Liero avatar Oct 25 '21 06:10 Liero

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.

jsakamoto avatar Oct 26 '21 12:10 jsakamoto

BTW, it would be great blog post - what it takes to upgrade to .NET 6

Liero avatar Oct 26 '21 13:10 Liero