fix: Fixes issue where preferences view would not close after pressing Escape

This commit is contained in:
Aman Harwara
2023-02-27 14:13:39 +05:30
parent 3c1dc10504
commit 6c120ffde2
3 changed files with 7 additions and 13 deletions

View File

@@ -189,6 +189,7 @@ export class KeyboardService {
this.commandHandlers.push(observer)
const thislessObservers = this.commandHandlers
console.log(thislessObservers)
return () => {
observer.onKeyDown = undefined
observer.onKeyDown = undefined