Skip to content
Discussion options

You must be logged in to vote

Yes it is, for now. It was implemented like that initially, but this behaviour might change with a next major change, so that the functionality is split up.

What might help you, is that an extra parameter has been added to the onClose response object, so you can detect what triggered the onChange event. If you press ctrl +s, this is the response:

{
    "event": "exit",
    "modified": false,
    "parentEvent": "save"
}

If the exit button is clicked manually, this is the response:

{
    "event": "exit",
    "modified": false
}

The parentEvent can be used to change behaviour if necessary

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Vladmidir
Comment options

Answer selected by Vladmidir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants