diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-09-05 21:20:39 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-09-05 21:36:27 +0900 |
commit | faba02ec21e9848b1cdf6a6a8bf507500a34290a (patch) | |
tree | 1563735f176f7020937adba607f2b491fea0fae6 /src/console | |
parent | 428805e66f993884643136dc2d8267c53bd81588 (diff) |
Cancel follow mode and console by Ctrl-C
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/components/Console.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
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; |