File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ function KeyboardShortcutModal() {
74
74
</ span >
75
75
< span > Turn off Accessible Output</ span >
76
76
</ li >
77
+ < li className = "keyboard-shortcut-item" >
78
+ < span className = "keyboard-shortcut__command" >
79
+ { metaKeyName } + B
80
+ </ span >
81
+ < span > Toggle Sidebar</ span >
82
+ </ li >
77
83
</ ul >
78
84
) ;
79
85
}
Original file line number Diff line number Diff line change @@ -156,6 +156,13 @@ class IDEView extends React.Component {
156
156
} else if ( e . keyCode === 49 && ( ( e . metaKey && this . isMac ) || ( e . ctrlKey && ! this . isMac ) ) && e . shiftKey ) {
157
157
e . preventDefault ( ) ;
158
158
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
+ }
159
166
}
160
167
}
161
168
You can’t perform that action at this time.
0 commit comments