diff --git a/client/modules/IDE/components/KeyboardShortcutModal.jsx b/client/modules/IDE/components/KeyboardShortcutModal.jsx index 7a8e8b58..420a99c6 100644 --- a/client/modules/IDE/components/KeyboardShortcutModal.jsx +++ b/client/modules/IDE/components/KeyboardShortcutModal.jsx @@ -80,6 +80,12 @@ function KeyboardShortcutModal() { Toggle Sidebar +
  • + + Ctrl + ` + + Toggle Console +
  • ); } diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index cd5813d2..2b0fd714 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.ctrlKey) { + e.preventDefault(); + if (this.props.ide.consoleIsExpanded) { + this.props.collapseConsole(); + } else { + this.props.expandConsole(); + } } }