![]() Global bindĪllows you to set global bindings that work even inside of input fields. Bind dictionaryĪllows you to make multiple bindings in a single Combokeys.bind call. At the time of this writing, the only differences are in how you get it in your page (It is now a CommonJS module which does not define a global for itself) and that you must instantiate it before binding keys. The most complete documentation is currently at Mousetrap, the original project's website. This creates a universally compatible dist/combokeys.js which, you can use via RequireJS, or include directly in a tag with the global variable Combokeys. You can also build an AMD-compatible version by running npm run build. It works with the numeric keypad on your keyboard.You can programatically trigger key events with the trigger() method.You can bind Gmail like key sequences in addition to regular keys and key combinations.It works with international keyboard layouts. ![]() You can bind key events directly to special keys such as ? or * without having to specify shift+/ or shift+8 which are not consistent across all keyboards.You are not limited to keydown events (You can specify keypress, keydown, or keyup or let Combokeys choose for you).You can listen on multiple, specified elements simultaneously.There are a number of other similar libraries out there so what makes this one different? bind ( '4', function ( ) ) Why Combokeys?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |