Handling keyboard shortcuts in the Browser with Mousetrap.js
Especially when building more complex UI’s, it is helpful or even necessary to provide the user with keyboard shortcuts. Of course this is also conceivable in video games or something like that. Anyway — here is Mousetrap with just 2.2kB for you Get the code, for example from a CDN: https://craig.global.ssl.fastly.net/js/mousetrap/mousetrap.min.js?a4098Import it Leggi tutto




