Added keyboard event as parameter to the callback of bind in combokeys

This commit is contained in:
Christopher Altonji
2017-11-28 14:17:42 -08:00
parent e9430decb9
commit d136e288cc

View File

@@ -35,7 +35,7 @@ declare namespace Combokeys {
* @param {handler} optional - one of "keypress", "keydown", or "keyup"
* @returns void
*/
bind(keys: string | string[], callback: () => void, action?: string): void;
bind(keys: string | string[], callback: (event: KeyboardEvent) => void, action?: string): void;
/**