Allow boolean return value from KeyHandler (#164)

pull/165/head
James Chao 5 years ago committed by GitHub
parent ebbc84548c
commit d3c0d4830b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
index.d.ts vendored

@ -7,7 +7,7 @@ export interface HotkeysEvent {
}
export interface KeyHandler {
(keyboardEvent: KeyboardEvent, hotkeysEvent: HotkeysEvent): void
(keyboardEvent: KeyboardEvent, hotkeysEvent: HotkeysEvent): void | boolean
}
type Options = {

Loading…
Cancel
Save