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
File dialogs cancel event #292
Comments
One more issue:
|
This is a hack but works: |
The hack is taken of: nwjs/nw.js#292 Thanks sompylasar https://github.com/sompylasar
The hack proposed by @kochelmonster causes |
Another approach is to add a cancel event listener:
This works for me, and variable |
Is there a way to detect "Cancel" button event in file dialog?
var chooserEntered = function() {
//do some staff. Ok
};
var chooserCanceled = function() {
//do some staff. How to call???
}
var chooser = $('');
chooser.change(function(e) {
console.log(chooser.val());
chooserEntered(chooser.val());
});
chooser.click();
The text was updated successfully, but these errors were encountered: