3 ms·
This offers a few additional things such as supporting Gmail style key sequences, binding keyup events, supporting keys that require the shift modifier using th
by craigc 14y ago
This offers a few additional things such as supporting Gmail style key sequences, binding keyup events, supporting keys that require the shift modifier using their key name "?", triggering key commands programmatically, etc.
- mcrittenden 14y agoAwesome! I'm super excited about this. I've been using keymaster for my Chrome extension for custom key bindings [1] but it's suffering from two issues: - Lack of "key-sequences" ala Gmail - Bug where focusing on a page having already pushed down a modifier doesn't tell keymaster that the modifier is pushed. For example if you ctrl+tab to a page and keep the control key pushed, then hit an action key (say "f"), then what you really want is to trigger ctrl+f but keymaster doesn't recognize it because it doesn't see ctrl as having been pressed since it was already held down before the page had focus. Looks like Mousetrap fixes both of these issues. Thanks a ton! 1: https://chrome.google.com/webstore/detail/logpjaacgmcbpdkdchjiaagddngobkck https://chrome.google.com/webstore/detail/logpjaacgmcbpdkdch...