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

Fix The Freeze Hinter #3252 #3299

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Jatin24062005
Copy link

Making runnig all the tests and
Working When Press the Esc key to dismiss the Hinter.

1.Start typing something with the Hinter enabled.
2.The Hinter window pops up.
3.Press the Esc key to dismiss the Hinter.

Fixes #issue-number

Changes:
Added a keydown event listener in the Completion constructor to monitor key presses on the editor and trigger the handleKeyPress method for custom key handling.

Implemented Escape key functionality in the handleKeyPress method to close the completion widget by calling this.close() and preventing default behavior.
I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

Making runnig all the tests and
Working When Press the Esc key to dismiss the Hinter.

1.Start typing something with the Hinter enabled.
2.The Hinter window pops up.
3.Press the Esc key to dismiss the Hinter.
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