Skip to content

Commit 9d0603b

Browse files
committed
Feature sidebar toggle shortcut
1 parent ab7f427 commit 9d0603b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client/modules/IDE/pages/IDEView.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ class IDEView extends React.Component {
156156
} else if (e.keyCode === 49 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac)) && e.shiftKey) {
157157
e.preventDefault();
158158
this.props.setAllAccessibleOutput(true);
159+
} else if (e.keyCode === 66 && ((e.metaKey && this.isMac) || (e.ctrlKey && !this.isMac))) {
160+
e.preventDefault();
161+
if (!this.props.ide.sidebarIsExpanded) {
162+
this.props.expandSidebar();
163+
} else {
164+
this.props.collapseSidebar();
165+
}
159166
}
160167
}
161168

0 commit comments

Comments
 (0)