diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-02-09 09:32:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 09:32:27 +0900 |
commit | 8b9388f6e60fe67d20638f55aecb0ed1b281871a (patch) | |
tree | 9fa6491a7e9d404351fe5cf436754b44fa713b0d /src/content/controllers | |
parent | f27cff5083b8ea7a6c316f4ed31ed6507bc99dc0 (diff) | |
parent | 0263170bd2603165edecce1b55493c7b2092e2e6 (diff) |
Merge pull request #709 from ueokande/blur-keys-on-blur
Clear keys on window blur
Diffstat (limited to 'src/content/controllers')
-rw-r--r-- | src/content/controllers/KeymapController.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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(); + } } |