Merge pull request #1287 from shakti97/shortcut-toggle-console
Added Shortcut Toggle Console
This commit is contained in:
commit
46a8d60c63
2 changed files with 13 additions and 0 deletions
|
@ -80,6 +80,12 @@ function KeyboardShortcutModal() {
|
||||||
</span>
|
</span>
|
||||||
<span>Toggle Sidebar</span>
|
<span>Toggle Sidebar</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li className="keyboard-shortcut-item">
|
||||||
|
<span className="keyboard-shortcut__command">
|
||||||
|
Ctrl + `
|
||||||
|
</span>
|
||||||
|
<span>Toggle Console</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,6 +163,13 @@ class IDEView extends React.Component {
|
||||||
} else {
|
} else {
|
||||||
this.props.collapseSidebar();
|
this.props.collapseSidebar();
|
||||||
}
|
}
|
||||||
|
} else if (e.keyCode === 192 && e.ctrlKey) {
|
||||||
|
e.preventDefault();
|
||||||
|
if (this.props.ide.consoleIsExpanded) {
|
||||||
|
this.props.collapseConsole();
|
||||||
|
} else {
|
||||||
|
this.props.expandConsole();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue