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 completion with enter key #154

Merged
merged 2 commits into from
Feb 26, 2015
Merged

Fix completion with enter key #154

merged 2 commits into from
Feb 26, 2015

Conversation

tleruitte
Copy link
Contributor

The plugin is working great when the completion is done with the mouse (i.e. clicking on a suggestion with the mouse), but is buggy when a suggestion is chosen with the enter key.

The adapter will try to complete at each keyup event. However, it shouldn't try to complete when the enter key is pressed (either because the enter key can be used to select a previous completion, or to insert a line break).
When the enter key is pressed, the dropdown should be closed.
@yuku yuku added the bug label Feb 26, 2015
@yuku
Copy link
Owner

yuku commented Feb 26, 2015

Hi @tleruitte, thanks for the patch. It looks good to me. I'll bump the version 👍

yuku added a commit that referenced this pull request Feb 26, 2015
Fix completion with enter key
@yuku yuku merged commit 624cc3f into yuku:master Feb 26, 2015
@yuku yuku added the DEPRECATED jquery-textcomplete Issues associated to jquery-textcomplete (was DEPRECATED) label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug DEPRECATED jquery-textcomplete Issues associated to jquery-textcomplete (was DEPRECATED)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants