From d666d17e9c6f507cded5842dd47c1b807d4ad376 Mon Sep 17 00:00:00 2001 From: shakti97 Date: Tue, 25 Feb 2020 01:13:57 +0530 Subject: [PATCH] Added Shortcut Toggle Console --- client/modules/IDE/pages/IDEView.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index cd5813d2..39809d4b 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -163,6 +163,13 @@ class IDEView extends React.Component { } else { this.props.collapseSidebar(); } + } else if (e.keyCode === 192 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac))) { + e.preventDefault(); + if (this.props.ide.consoleIsExpanded) { + this.props.collapseConsole(); + } else { + this.props.expandConsole(); + } } }