Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pietrop opened this issue Jan 18, 2017 · 0 comments
Open

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

pietrop opened this issue Jan 18, 2017 · 0 comments

Comments

@pietrop
Copy link
Collaborator

pietrop commented Jan 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Bugs
  
To do
Development

No branches or pull requests

1 participant