Skip to content
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

Can this trap Windows exit (X) button ? #39

Open
alevinetx opened this issue May 1, 2022 · 2 comments
Open

Can this trap Windows exit (X) button ? #39

alevinetx opened this issue May 1, 2022 · 2 comments

Comments

@alevinetx
Copy link

I saw in Issue #19 you were able to trap some additional OS-level functionality.

Is it possible to extend this a bit more to handle the "X" button that exits an application?

image

@artdiniz
Copy link
Owner

artdiniz commented May 3, 2022

Hey there! At the time of previous releases, there wasn't a straightforward API to intercept that. But the VSCode team is about to ship a native "confirm before quit" popup that will probably address that. I'll do some experimentation to see if this extension might benefit from it somehow.

@alevinetx
Copy link
Author

That's great to hear about the app itself handling it. It sounds trivial, but the number of times muscle memory takes over and sees the X and says "CLICK HERE!!"... yeah :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants