mousetrap
mousetrap copied to clipboard
Option for exact modifier key matches
In our application we're using multiple mousetraps on different elements for context-sensitive keybindings, and are having issues with keyboard shortcut collisions between the mousetraps.
e.g. ctl+shift+k
in the global scope collides with ctrl+k
in the child scope.
It'd be nice if there were an option for exact modifier key matching (on alt, ctrl, meta, & shift) when binding a key.
I'd be happy to write it up & open the PR it if there's interest.