Closed dungvt closed 5 years ago
This is also an issue when wanting the key combo to be two alphabet letters like g+d
. Or having ?
instead of f1
to open the shortcuts modal.
Is that a deliberate choice not to support this?
(That's by the way exactly the same problem in ng-keyboard-shortcuts
@omridevk )
@jnfaerch
I wouldn't call it "deliberate" per se, it just a scenario we have yet decided to support, as it require some breaking changes in core code of the library (ng-keyboard-shortcuts), however. it is in my roadmap, and should be added in the future. As for this library, I cannot provide any further insight in regards to their decision.
though it seems the base implementation here uses Mousetrap behind the scene, and I do not think Mousetrap supports key combination such as "a + b", it does support sequences though.
Some webbrowsers will use some of those hotkeys for themselves, in which case they cannot be picked by a web application. I know firefox uses one control key and numbers to switch between tabs and in those cases it doesn't seem possible to use them.
Have you tried this in different browsers to see if it happens everywhere?
Since no further feedback has been provided I'm closing this.
Hello everybody, I have a hotkey that combined from 'alt' key and a number (from 0 - 5) key. But it doesn't work. My code here:
I just changed 'alt' key to 'ctrl' key, it works normally. But I think that will be perfect if we can work with both 'alt' and 'ctrl'. Do you have any idea?