-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for your work on this and sorry that it took a while!
I think this is a pretty good start so far and addresses the issue of the autocomplete hinter freezing when the escape key is pressed! One additional change I would make is besides my other comment is ensuring that the cursor is visible on the editor after the escape key as pressed. I think at the moment, although the window is closed, the user cannot continue typing within the text editor.
Thanks so much again and let me know if you have any questions!
package.json
Outdated
@@ -125,7 +125,7 @@ | |||
"eslint-plugin-storybook": "^0.6.15", | |||
"file-loader": "^6.2.0", | |||
"husky": "^4.3.8", | |||
"jest": "^27.3.1", | |||
"jest": "^27.5.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this change is not related to the issue, I would remove the changes to package.json
and package-lock.json
for this PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raclim Thankyou for your response should i make any Changes/Remove package.json and package-lock.json or you can do from your end ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please give it a try! If you end up facing any issues with it, I'll jump in and see if I can support!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have Fixed Package.json but struggling to fix package-lock.json . else everything is good to go from my side.
This reverts commit a70d205.
Thanks so much for giving this a shot! Removing During this process, I remembered that there were a few areas between the I'll do a quick break down of the changes I made, which ended up being tied to an earlier issue. When looking at There's another area that handles the Escape key within the I'm going to merge this in with these updates, but please feel free to make any further modifications to this pull request or open a new one with any further suggestions or changes you would like to make! Thank you again for your work on this! |
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 #3252
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:
npm run lint
)npm run test
)develop
branch.Fixes #123