mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
375 B
TypeScript
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'}});
|
|
|