Skip to content

Commit

Permalink
use local hotkeys not global fixes ZoneMinder#759
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Dec 12, 2018
1 parent 25f8b42 commit 4fa20df
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions electron_js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ function createAlternateWindow() {
function createWindow() {


const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
// don't need these as we are using local menu bindings
/*const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
console.log('Command Or Control+F is pressed');
isFs = !isFs;
Expand All @@ -85,7 +86,8 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
const dbgx = globalShortcut.register('CommandOrControl+Alt+D', () => {
console.log('CommandOrControl+Alt+D is pressed');
win.webContents.openDevTools();
})
})*/


/*const newwinx = globalShortcut.register('CommandOrControl+Alt+N', () => {
console.log('CommandOrControl+Alt+N is pressed');
Expand Down Expand Up @@ -173,13 +175,13 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
submenu: [
{role: 'reload'},
{role: 'forcereload'},
{role: 'toggledevtools'},
{role: 'toggledevtools', accelerator: 'CmdOrCtrl+Alt+D'},
{type: 'separator'},
{role: 'resetzoom'},
{role: 'zoomin'},
{role: 'zoomout'},
{type: 'separator'},
{role: 'togglefullscreen'}
{role: 'togglefullscreen', accelerator: 'CmdOrCtrl+Alt+F'}
]
},
{
Expand Down

0 comments on commit 4fa20df

Please sign in to comment.