Call a method for mouse or keyboard 'pre-selection'
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.
I will take a look, you are not the first who needs this functionality.
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.
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.
Wake up and merge this.
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.