quit-control-vscode icon indicating copy to clipboard operation
quit-control-vscode copied to clipboard

Can this trap Windows exit (X) button ?

Open alevinetx opened this issue 3 years ago • 2 comments

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

alevinetx avatar May 01 '22 01:05 alevinetx

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.

artdiniz avatar May 03 '22 17:05 artdiniz

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 :)

alevinetx avatar May 05 '22 19:05 alevinetx