Skip to content

Manually cancel/reset open forms #208

@IbexPeak

Description

@IbexPeak

Hi shibayan,

I currently have the problem that I can't cancel a form like an input form manually.

In my application a wpf window hosts a console, which is shown upon request and can be hidden using a button. If the user inputs text without pressing enter, but than hides the console, the next time the (cleared) console is displayed, the last form is still opened, and results in strange effects with the next inputs (inputs are combined with cached inputs). Creating a fresh console instance does not resolve the problem, as the input form is still open inside Sharprompt.

Currently the only solution is when the use enters "Ctrl" + "C" in combination with Prompt.ThrowExceptionOnCancel, which internally resets the form in Sharprompt. It would be nice if this reset can be called at any time from code for all open forms.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions