Nw.js: registerGlobalHotKey and alert

Created on 16 Jun 2016  路  3Comments  路  Source: nwjs/nw.js

nw version:0.15.2
os version:windows 10 x64
code:

var option = {
    key: "Ctrl+Shift+N",
    active: function() {
        alert("1")
    },
    failed: function(msg) {
        alert("2")
    }
};
var shortcut = new nw.Shortcut(option);
nw.App.registerGlobalHotKey(shortcut);

description:
When app is minsized and the shortcut is pressed, the alert dialog can not show and the app is disabled.

bug

Most helpful comment

I can confirm this issue. Looks like it only happens on Windows. I will try to fix it.

All 3 comments

I can confirm this issue. Looks like it only happens on Windows. I will try to fix it.

This is fixed in git and will be available in the next nightly build.

OK~Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings