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/usecases/KeymapUseCase.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/content/usecases') diff --git a/src/content/usecases/KeymapUseCase.ts b/src/content/usecases/KeymapUseCase.ts index 7aa7e92..e02bc48 100644 --- a/src/content/usecases/KeymapUseCase.ts +++ b/src/content/usecases/KeymapUseCase.ts @@ -70,6 +70,10 @@ export default class KeymapUseCase { return null; } + cancel() { + this.repository.clear(); + } + private keymapEntityMap(): [KeySequence, operations.Operation][] { const keymaps = this.settingRepository.get().keymaps.combine(reservedKeymaps); let entries = keymaps.entries().map( -- cgit v1.2.3