Feature sidebar toggle shortcut
This commit is contained in:
parent
ab7f4279bd
commit
9d0603b6d5
1 changed files with 7 additions and 0 deletions
|
@ -156,6 +156,13 @@ class IDEView extends React.Component {
|
|||
} else if (e.keyCode === 49 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac)) && e.shiftKey) {
|
||||
e.preventDefault();
|
||||
this.props.setAllAccessibleOutput(true);
|
||||
} else if (e.keyCode === 66 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac))) {
|
||||
e.preventDefault();
|
||||
if (!this.props.ide.sidebarIsExpanded) {
|
||||
this.props.expandSidebar();
|
||||
} else {
|
||||
this.props.collapseSidebar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue