have KeyEvent extend KeyboardEvent (#13380)

Otherwise Typescript complains when I try to use e.preventDefault() and doesn't provide completion to other KeyboardEvent properties.
This commit is contained in:
Michael Delaney
2016-12-27 18:50:24 -05:00
committed by Andy
parent b734356f8e
commit bed47f7776
+1 -1
View File
@@ -17,7 +17,7 @@ declare namespace keyboardjs {
/**
* Information and functions in the current callback.
*/
interface KeyEvent{
interface KeyEvent extends KeyboardEvent {
preventRepeat(): void;
}