From faba02ec21e9848b1cdf6a6a8bf507500a34290a Mon Sep 17 00:00:00 2001
From: Shin'ya Ueoka <ueokande@i-beam.org>
Date: Thu, 5 Sep 2019 21:20:39 +0900
Subject: Cancel follow mode and console by Ctrl-C

---
 src/console/components/Console.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/console/components/Console.tsx')

diff --git a/src/console/components/Console.tsx b/src/console/components/Console.tsx
index 7da2f36..1743d15 100644
--- a/src/console/components/Console.tsx
+++ b/src/console/components/Console.tsx
@@ -72,6 +72,13 @@ class Console extends React.Component<Props> {
       break;
     case '[':
       if (e.ctrlKey) {
+        e.preventDefault();
+        return this.props.dispatch(consoleActions.hideCommand());
+      }
+      break;
+    case 'c':
+      if (e.ctrlKey) {
+        e.preventDefault();
         return this.props.dispatch(consoleActions.hideCommand());
       }
       break;
-- 
cgit v1.2.3

