parent
12c0894079
commit
35a7690591
@ -0,0 +1,20 @@ |
||||
import {BrowserWindow, MenuItemConstructorOptions} from 'electron'; |
||||
|
||||
export default ( |
||||
commandKeys: Record<string, string>, |
||||
execCommand: (command: string, focusedWindow?: BrowserWindow) => void |
||||
): MenuItemConstructorOptions => { |
||||
const isMac = process.platform === 'darwin'; |
||||
|
||||
return { |
||||
label: 'Terminal', |
||||
submenu: [ |
||||
{ |
||||
label: 'New Terminal', |
||||
click(item, focusedWindow) { |
||||
execCommand('terminal:new', focusedWindow); |
||||
} |
||||
} |
||||
] |
||||
}; |
||||
}; |
Loading…
Reference in new issue