Skip to content

Commit

Permalink
add keyboard shortcuts to profile menus
Browse files Browse the repository at this point in the history
  • Loading branch information
LabhanshAgrawal committed Jul 1, 2023
1 parent 2e31fea commit f7f7131
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/menus/menus/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ export default (
submenu: [
{
label: 'New Tab',
accelerator: commandKeys[`tab:new:${profile}`],
click(item, focusedWindow) {
execCommand(`tab:new:${profile}`, focusedWindow);
}
},
{
label: 'New Window',
accelerator: commandKeys[`window:new:${profile}`],
click(item, focusedWindow) {
execCommand(`window:new:${profile}`, focusedWindow);
}
Expand All @@ -65,12 +67,14 @@ export default (
},
{
label: 'Split Down',
accelerator: commandKeys[`pane:splitDown:${profile}`],
click(item, focusedWindow) {
execCommand(`pane:splitDown:${profile}`, focusedWindow);
}
},
{
label: 'Split Right',
accelerator: commandKeys[`pane:splitRight:${profile}`],
click(item, focusedWindow) {
execCommand(`pane:splitRight:${profile}`, focusedWindow);
}
Expand Down

0 comments on commit f7f7131

Please sign in to comment.