Closed MikeWilliams-UK closed 3 months ago
@MikeWilliams-UK Thank you for your feedback! Honestly, I haven't been concerned well about the "Remove" API. I'll try to fix it.
@MikeWilliams-UK
Today, I released a new version of the Blazor Hotkeys2.
Could you try it out?
Thanks that update fixes the problem I saw
I have found that if you wish to remove a HotKey using the .Remove() method for a HotKey which you supplied options such as ExcludeSelector and Description you have to specify ALL of them when you wish to remove the HotKeys
In my application I have added HotKeysContext as a CascadingValue in order to have a Top level definition which includes keys "?" and "Escape" to show/hide the cheat sheet then in the page's OnInitialized I add the desired extra Hotkeys for the page and in Dispose I remove them.
Please fix the implementation of Remove() to work as expected when the HotKey has options set.
See example below