The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Keypress issues
| Project: | jQuery AutoComplete |
| Version: | 1.0.1 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
First I notice that if I type something like "foo" to bring up the autocomplete, if I backspace all the way (removing everything I have typed) the autocomplete box remains visible with some values in it. I found that I could fix this by adding the line
if (self.val() == "") return true;
around line 137, right where it checks to see if !list.length. Although there is probably a better place to put this to run before any ajax calls.
Another issue is that a lot of useful keys are disabled. Like Home, End, Shift-Home, etc, for me to select the entire text box and clear it or whatever. I found if I comment out like 116:
else if ($.data(document.body, "autocompleteMode") && e.charCode < 32 && e.keyCode != 8 && e.keyCode != 46) return false;
I can get these keys to function again, but I wonder what you meant this line to do and what I may have broken. Can you recommend a better fix?
- Login to post comments
