From 9902d4276052aabd6009320ec6a44bef8ceaed39 Mon Sep 17 00:00:00 2001 From: secult Date: Fri, 10 Aug 2018 08:07:39 +0200 Subject: [PATCH] docs: cancelId works on windows (#13882) 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). --- docs/api/dialog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/dialog.md b/docs/api/dialog.md index a69cba8b969ee..11101ae3ec019 100644 --- a/docs/api/dialog.md +++ b/docs/api/dialog.md @@ -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