aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-02-09 09:32:27 +0900
committerGitHub <noreply@github.com>2020-02-09 09:32:27 +0900
commit8b9388f6e60fe67d20638f55aecb0ed1b281871a (patch)
tree9fa6491a7e9d404351fe5cf436754b44fa713b0d /src/content/usecases
parentf27cff5083b8ea7a6c316f4ed31ed6507bc99dc0 (diff)
parent0263170bd2603165edecce1b55493c7b2092e2e6 (diff)
Merge pull request #709 from ueokande/blur-keys-on-blur
Clear keys on window blur
Diffstat (limited to 'src/content/usecases')
-rw-r--r--src/content/usecases/KeymapUseCase.ts4
1 files changed, 4 insertions, 0 deletions
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(