This repository was archived by the owner on May 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ import CSSModules from 'browser/lib/CSSModules'
44import styles from './FullscreenButton.styl'
55import i18n from 'browser/lib/i18n'
66
7+ const OSX = global . process . platform === 'darwin'
8+ const hotkey = ( OSX ? i18n . __ ( 'Command(⌘)' ) : i18n . __ ( 'Ctrl(^)' ) ) + '+B'
79const FullscreenButton = ( {
810 onClick
911} ) => (
1012 < button styleName = 'control-fullScreenButton' title = { i18n . __ ( 'Fullscreen' ) } onMouseDown = { ( e ) => onClick ( e ) } >
1113 < img styleName = 'iconInfo' src = '../resources/icon/icon-full.svg' />
12- < span styleName = 'tooltip' > { i18n . __ ( 'Fullscreen' ) } </ span >
14+ < span styleName = 'tooltip' > { i18n . __ ( 'Fullscreen' ) } ( { hotkey } ) </ span >
1315 </ button >
1416)
1517
Original file line number Diff line number Diff line change @@ -276,6 +276,19 @@ const view = {
276276 mainWindow . setFullScreen ( ! mainWindow . isFullScreen ( ) )
277277 }
278278 } ,
279+ {
280+ type : 'separator'
281+ } ,
282+ {
283+ label : 'Toggle Side Bar' ,
284+ accelerator : 'CommandOrControl+B' ,
285+ click ( ) {
286+ mainWindow . webContents . send ( 'editor:fullscreen' )
287+ }
288+ } ,
289+ {
290+ type : 'separator'
291+ } ,
279292 {
280293 role : 'zoomin' ,
281294 accelerator : macOS ? 'CommandOrControl+Plus' : 'Control+='
You can’t perform that action at this time.
0 commit comments