Skip to content

Commit

Permalink
docs: cancelId works on windows (#13882)
Browse files Browse the repository at this point in the history
The note about cancelId not working on windows is not valid. Tried on Windows 7 and Windows 10 and it works in both cases (tested on electron 1.8.7).
  • Loading branch information
secult authored and MarshallOfSound committed Aug 10, 2018
1 parent 1c87987 commit 9902d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/dialog.md
Expand Up @@ -141,7 +141,7 @@ will be passed via `callback(filename)`.
* `cancelId` Integer (optional) - The index of the button to be used to cancel the dialog, via
the `Esc` key. By default this is assigned to the first button with "cancel" or "no" as the
label. If no such labeled buttons exist and this option is not set, `0` will be used as the
return value or callback response. This option is ignored on Windows.
return value or callback response.
* `noLink` Boolean (optional) - On Windows Electron will try to figure out which one of
the `buttons` are common buttons (like "Cancel" or "Yes"), and show the
others as command links in the dialog. This can make the dialog appear in
Expand Down

0 comments on commit 9902d42

Please sign in to comment.