added pressedKeys

This commit is contained in:
Teoxoy
2018-09-19 17:36:05 +02:00
committed by GitHub
parent 1b6989809f
commit b07dcf2ddc
+3 -1
View File
@@ -1,7 +1,8 @@
// Type definitions for KeyboardJS v2.2.0
// Project: https://github.com/RobertWHurst/KeyboardJS
// Definitions by: Vincent Bortone <https://github.com/vbortone>,
// David Asmuth <https://github.com/piranha771>
// David Asmuth <https://github.com/piranha771>,
// Tanasoaia Teodor <https://github.com/teoxoy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// KeyboardJS is a library for use in the browser (node.js compatible).
@@ -19,6 +20,7 @@ declare namespace keyboardjs {
*/
interface KeyEvent extends KeyboardEvent {
preventRepeat(): void;
pressedKeys: string[];
}
/**