DefinitelyTyped/types/keymaster/keymaster-tests.ts
2017-03-24 14:27:52 -07:00

15 lines
375 B
TypeScript

// simple key binding without scope
key('shift+a', function (keyboardEvent: KeyboardEvent, keymasterEvent: KeymasterEvent) {
});
// simple key binding with scope
key('shift+b', 'aScope', (keyboardEvent, keymasterEvent) => {
});
// possible combinations of filtering
key.filter({target: { tagName: 'propertytest'}});
key.filter({srcElement: { tagName: 'propertytest'}});