combokeys
combokeys copied to clipboard
use regexp or smart shortcuts to filter key event streams
so something i was trying to do but didn't really get how was to filter events for alphanumeric keys. i can contribute to this, maybe there's a way to add custom filters easily to this plugin? lemme know!
So, you want to add a binding that uses a regexp for the key, or a filter function?
Something like
combokeys.bind(
function (character, e) {
if (
// filter code
) {
return true;
},
function () {
// callback
}
)