mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Add option to keep window always on top
This commit is contained in:
parent
d3a12f9912
commit
6c191800e0
2 changed files with 9 additions and 0 deletions
|
|
@ -130,6 +130,9 @@ const commands: Record<string, (focusedWindow?: BrowserWindow) => void> = {
|
|||
},
|
||||
'systemContextMenu:remove': () => {
|
||||
systemContextMenu.remove();
|
||||
},
|
||||
'window:toggleKeepOnTop': (focusedWindow) => {
|
||||
focusedWindow?.setAlwaysOnTop(!focusedWindow.isAlwaysOnTop());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -81,6 +81,12 @@ export default (
|
|||
{
|
||||
role: 'front'
|
||||
},
|
||||
{
|
||||
label: 'Toggle Always on Top',
|
||||
click: (item, focusedWindow) => {
|
||||
execCommand('window:toggleKeepOnTop', focusedWindow);
|
||||
}
|
||||
},
|
||||
{
|
||||
role: 'togglefullscreen',
|
||||
accelerator: commandKeys['window:toggleFullScreen']
|
||||
|
|
|
|||
Loading…
Reference in a new issue