diff --git a/src/admin/adminService.ts b/src/admin/adminService.ts index c83c61b..e5c8dfc 100644 --- a/src/admin/adminService.ts +++ b/src/admin/adminService.ts @@ -107,7 +107,10 @@ export class AdminService { private async keydownListener(e: KeyboardEvent): Promise { // console.log(e) if (!this.cfg.predicate(e)) return + await this.checkToggleRedDot() + } + async checkToggleRedDot(): Promise { try { const allow = await this.cfg[this.adminMode ? 'beforeExit' : 'beforeEnter']() if (!allow) return // no change