'VSCode ShowinputBox have a mandatory field? Either trap the escape and force data input or disable the ability to escape
How do I make an input field mandatory in VSCode ShowInputBox? I do not want the user to be able to escape out. I know I can trap the response to be undefined which tells me that the user did in fact escape but I then want to reissue the ShowInputbox. That becomes really messy. It would be cleaner to remain in the ShowInputBox and not proceed till data is present. "validateInput" is not an option as it doesn't get called when escape is pressed.
Is there any means of either suppressing the Escape key or trapping it such that the user has to enter some data into the field.
Seems a simple request but I cannot find any means of accomplishing this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
