Skip to content

Commit

Permalink
Remove unused variable handleKeyDownHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Nov 3, 2024
1 parent f4e23ad commit 1c7382d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/keyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export default class KeyHandler {
}

public deinit(): void {
if (this.handleKeyDownHandler) {
document.removeEventListener("keydown", this.handleKeyDownHandler);
if (this.keyboardSupport) {
document.removeEventListener("keydown", this.handleKeyDown);
}
}

Expand Down

0 comments on commit 1c7382d

Please sign in to comment.