Ticket #3759 (closed enhancement: invalid)
autocomplete
| Reported by: | Songokoussj2 | Owned by: | joern |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | plugin | Version: | 1.2.6 |
| Keywords: | Cc: | Songokoussj2 | |
| Blocking: | Blocked by: |
Description
It would be great to see autocompletes result list to behave more like a normal html select list resulting in better user experience. Selecting an "option" from the result list should use the mouseup-event instead of the click-event resulting in the possibility to make a mousedown on an "option" moving the mouse to another "option" and selecting the desired "option" using a mouseup. Additionaly it should not be possible to select text from an "option".
In order to prevent the selection of the text mousedown should return false (line 579) and a selectstart-event should be added which should return false too to get the same behavior on IE. Eventually this plugin can be used http://plugins.jquery.com/project/disable_text_select on the list at line 574.
For right selection behavior of an option i copied the code from line 580-584 and pasted this code into the mouseup-event at line 592. I also removed the click-event handler cause it is not needed anymore.
Thanks you for your work Thomas Wanschik
Attachments
Change History
Changed 4 years ago by Songokoussj2
-
attachment
jquery.autocomplete.js
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

removed little typing error