jQuery-Autocomplete icon indicating copy to clipboard operation
jQuery-Autocomplete copied to clipboard

Call a method for mouse or keyboard 'pre-selection'

Open karussell opened this issue 12 years ago • 5 comments

When doing mouse over or doing up+down with the keyboard I wanted to call a kind of preview on my site. So I needed a hook for that. Which requires some changes. E.g. the event name mouseover.autocomplete->mouseenter.autocomplete and mouseleave as otherwise the events were called too often: one time for the highlighted part and one for the normal text.

Please have a look as this plugin jquery magic is very new to me.

karussell avatar Nov 28 '13 17:11 karussell

I will take a look, you are not the first who needs this functionality.

tkirda avatar Dec 02 '13 16:12 tkirda

This would be really great to have. The input we have autocomplete attached to changes size based on the text in it, so we also have to have a workaround so that we can update the input's size when an option is pre-selected (since it updates the text in the input). Having a method or event for this would make that process much more straightforward.

Mr0grog avatar Jan 16 '14 20:01 Mr0grog

BTW: You can see that in action now on http://graphhopper.com/maps where one can do mouse-over or "pre-select" via keyboard and the map will show the location or show the calculated route.

karussell avatar Apr 11 '14 14:04 karussell

Wake up and merge this.

talha-asad avatar Jul 11 '14 06:07 talha-asad

I have to add: the pre-selection via mouse was distracting at some point for the user (e.g. typing while having the mouse below the input make strange stuff). So I had to disable it and now only pre-selection via keyboard is possible.

karussell avatar Jul 11 '14 06:07 karussell