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

Add CancelCommand and Bind it to EscapeKey. #8

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

AndreVianna
Copy link

Add CancelCommand and Bind it to EscapeKey.

The cancel command finishes the edit process and resets the buffer to the initial text and state. To the response of the prompt will be the original text if there is any or empty if there was nothing.

Also added unit tests for that.

Also added unit tests for that.
@AndreVianna
Copy link
Author

@microsoft-github-policy-service agree

@AndreVianna
Copy link
Author

resolves #9

@AndreVianna
Copy link
Author

Sorry about the bunch of commits in the end. My VS was resetting the EOL and EOF automatically on save, So I had to change the setting to be sure the PR only shows my changes.

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

Successfully merging this pull request may close these issues.

1 participant