From faba02ec21e9848b1cdf6a6a8bf507500a34290a Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 5 Sep 2019 21:20:39 +0900 Subject: Cancel follow mode and console by Ctrl-C --- src/content/InputDriver.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/content/InputDriver.ts') diff --git a/src/content/InputDriver.ts b/src/content/InputDriver.ts index cddc825..ec1f2cc 100644 --- a/src/content/InputDriver.ts +++ b/src/content/InputDriver.ts @@ -2,7 +2,16 @@ import * as dom from '../shared/utils/dom'; import Key, * as keys from './domains/Key'; const cancelKey = (e: KeyboardEvent): boolean => { - return e.key === 'Escape' || e.key === '[' && e.ctrlKey; + if (e.key === 'Escape') { + return true; + } + if (e.key === '[' && e.ctrlKey) { + return true; + } + if (e.key === 'c' && e.ctrlKey) { + return true; + } + return false; }; export default class InputDriver { -- cgit v1.2.3 From bf9bec21461991a1e4b7581446ecfe21091a9597 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 5 Sep 2019 21:36:57 +0900 Subject: Do not map Ctrl+C on imput --- src/content/InputDriver.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/content/InputDriver.ts') diff --git a/src/content/InputDriver.ts b/src/content/InputDriver.ts index ec1f2cc..0472088 100644 --- a/src/content/InputDriver.ts +++ b/src/content/InputDriver.ts @@ -8,9 +8,6 @@ const cancelKey = (e: KeyboardEvent): boolean => { if (e.key === '[' && e.ctrlKey) { return true; } - if (e.key === 'c' && e.ctrlKey) { - return true; - } return false; }; -- cgit v1.2.3