Skip to content

Conversation

@karussell
Copy link

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.

@tkirda
Copy link
Member

tkirda commented Dec 2, 2013

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

@Mr0grog
Copy link

Mr0grog commented Jan 16, 2014

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.

@karussell
Copy link
Author

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.

@talha-asad
Copy link

Wake up and merge this.

@karussell
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants