From c2b1aca9a1db96c52386b478a7e25472410226d4 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 5 Feb 2020 21:59:31 +0900 Subject: Clear keys on window blur --- src/content/controllers/KeymapController.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/content/controllers') diff --git a/src/content/controllers/KeymapController.ts b/src/content/controllers/KeymapController.ts index f9c2545..639b4a1 100644 --- a/src/content/controllers/KeymapController.ts +++ b/src/content/controllers/KeymapController.ts @@ -99,4 +99,8 @@ export default class KeymapController { } return true; } + + onBlurWindow() { + this.keymapUseCase.cancel(); + } } -- cgit v1.2.3