mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
add keyboard shortcuts to profile menus
This commit is contained in:
parent
30266ac833
commit
9fe9bc414e
1 changed files with 4 additions and 0 deletions
|
|
@ -50,12 +50,14 @@ export default (
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'New Tab',
|
label: 'New Tab',
|
||||||
|
accelerator: commandKeys[`tab:new:${profile}`],
|
||||||
click(item, focusedWindow) {
|
click(item, focusedWindow) {
|
||||||
execCommand(`tab:new:${profile}`, focusedWindow);
|
execCommand(`tab:new:${profile}`, focusedWindow);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'New Window',
|
label: 'New Window',
|
||||||
|
accelerator: commandKeys[`window:new:${profile}`],
|
||||||
click(item, focusedWindow) {
|
click(item, focusedWindow) {
|
||||||
execCommand(`window:new:${profile}`, focusedWindow);
|
execCommand(`window:new:${profile}`, focusedWindow);
|
||||||
}
|
}
|
||||||
|
|
@ -65,12 +67,14 @@ export default (
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Split Down',
|
label: 'Split Down',
|
||||||
|
accelerator: commandKeys[`pane:splitDown:${profile}`],
|
||||||
click(item, focusedWindow) {
|
click(item, focusedWindow) {
|
||||||
execCommand(`pane:splitDown:${profile}`, focusedWindow);
|
execCommand(`pane:splitDown:${profile}`, focusedWindow);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Split Right',
|
label: 'Split Right',
|
||||||
|
accelerator: commandKeys[`pane:splitRight:${profile}`],
|
||||||
click(item, focusedWindow) {
|
click(item, focusedWindow) {
|
||||||
execCommand(`pane:splitRight:${profile}`, focusedWindow);
|
execCommand(`pane:splitRight:${profile}`, focusedWindow);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue