'VSCode Input UI hide

Is there any possible ways to identify why an Input-UI (quickpick/inputbox) is hidden with the onDidHide event.

The problem is that I'm building an extension with vscode and want to do some process when the Input-UI is hidden by pressing the Esc key.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source