Change button shortcut
Is there any way to change the shortcut attached to the "Don't save" button in the dialog displayed after you select the "File>Close" menu item?
----
MacOS 12.6.7 (21G651) French localization InDesign 18.4.0.56 (18400)
Is there any way to change the shortcut attached to the "Don't save" button in the dialog displayed after you select the "File>Close" menu item?
----
MacOS 12.6.7 (21G651) French localization InDesign 18.4.0.56 (18400)
The event handler/listener (your doClose) should have an argument.
That argument will be an event object.
As per https://www.indesignjs.de/extendscriptAPI/indesign-latest/#MenuAction.html, the BEFORE_INVOKE is cancelable, if that works as documented, use the event's .preventDefault() method.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.