Call a method for mouse or keyboard 'pre-selection'#130
Call a method for mouse or keyboard 'pre-selection'#130karussell wants to merge 2 commits intodevbridge:masterfrom
Conversation
|
I will take a look, you are not the first who needs this functionality. |
|
This would be really great to have. The |
|
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. |
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.