Added Shortcut Toggle Console

This commit is contained in:
shakti97 2020-02-25 01:13:57 +05:30
parent 5a79a84833
commit d666d17e9c

View file

@ -163,6 +163,13 @@ class IDEView extends React.Component {
} else { } else {
this.props.collapseSidebar(); 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();
}
} }
} }