mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58:39 -09:00
Add shortcut for opening hamburger menu (Windows) (#3444)
* Add shortcut for opening hamburger menu (Windows) * Open hamburger menu if showHamburgerMenu config is truthy
This commit is contained in:
parent
4350ecd73a
commit
81ff38c8d9
2 changed files with 8 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
const {app} = require('electron');
|
const {app, Menu} = require('electron');
|
||||||
const {openConfig} = require('./config');
|
const {openConfig, getConfig} = require('./config');
|
||||||
const {updatePlugins} = require('./plugins');
|
const {updatePlugins} = require('./plugins');
|
||||||
const {installCLI} = require('./utils/cli-install');
|
const {installCLI} = require('./utils/cli-install');
|
||||||
|
|
||||||
|
|
@ -103,6 +103,11 @@ const commands = {
|
||||||
},
|
},
|
||||||
'cli:install': () => {
|
'cli:install': () => {
|
||||||
installCLI(true);
|
installCLI(true);
|
||||||
|
},
|
||||||
|
'window:hamburgerMenu': () => {
|
||||||
|
if (getConfig().showHamburgerMenu) {
|
||||||
|
Menu.getApplicationMenu().popup({x: 15, y: 15});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
"window:reload": "ctrl+shift+r",
|
"window:reload": "ctrl+shift+r",
|
||||||
"window:reloadFull": "ctrl+shift+f5",
|
"window:reloadFull": "ctrl+shift+f5",
|
||||||
"window:preferences": "ctrl+,",
|
"window:preferences": "ctrl+,",
|
||||||
|
"window:hamburgerMenu": "alt",
|
||||||
"zoom:reset": "ctrl+0",
|
"zoom:reset": "ctrl+0",
|
||||||
"zoom:in": "ctrl+=",
|
"zoom:in": "ctrl+=",
|
||||||
"zoom:out": "ctrl+-",
|
"zoom:out": "ctrl+-",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue