omridevk / ng-keyboard-shortcuts

Dead Simple Keyboard Shortcuts Management for Angular
https://ng-keyboard-shortcuts.vercel.app/
147 stars 34 forks source link

Shortcuts are inactive on disabled button in Firefox #97

Closed fidlip closed 3 years ago

fidlip commented 3 years ago

When I click button, and disable it immediately, keyboard shortcuts become nonfunctional in Firefox. It behave as expected in Chrome.

I prepared sample application in sandbox from your official example:

https://codesandbox.io/s/ng-keyboard-shortcuts-example-forked-6ow1k

omridevk commented 3 years ago

thank you for reporting the issue, I will look into it and will update the issue accordingly.

omridevk commented 3 years ago

I assume it is related to the fact that the button is disabled but is focused after clicked.

fidlip commented 3 years ago

Yes it very probably is.

omridevk commented 3 years ago

Duplicate of #

omridevk commented 3 years ago

5``