OpenNewsLabs / autoEdit_2

Fast text based video editing, node Electron Os X desktop app, with Backbone front end.
https://opennewslabs.github.io/autoEdit_2/
MIT License
419 stars 56 forks source link

console shortcut issue: change global shortcuts to in focus only #34

Open pietrop opened 7 years ago

pietrop commented 7 years ago

This would be a way a round to make sure that console shortcut cmd + alt +j does not ovveride other app such as chrome shortucts. Could use focus and event lister to add and remove global shortcut from app when is not in focus

http://docs.nwjs.io/en/latest/References/Window/#synopsis

//get the window 
var gui = require('nw.gui');
var win = gui.Window.get();
//listner
win.on('focus', function() {
    console.log('New window is focused');
  });

in lib/app/app.js line 60.

Another option is to use mouse trap js. Which is what is used for the keyboard shortcuts in transcription show page. Would need to figure out a way to set this so that it works on every window.