Select to view content in your preferred language

Geocoder Widget focus and map OnMouseOver

721
1
03-19-2013 04:44 AM
HugoMaurício
Deactivated User
Hi all!

There is this strange behavior in the Geocoder Widget sample. Try the following


  1. Click on the Geocoder input to give it focus and write something

  2. Move the mouse on to the top of the map (setting it's OnMouseOver)

  3. Click on the left and right arrow keys. The caret on the Geocoder does not move, but the map does.


On the other hand. If the Geocoder input box has both focus and OnMouseOver the arrow keys act normally.

I tried to set the map's isKeyboardNavigation but it has no effect.

Because of some specific functionality I developed my own geocoder but it has the same behavior as the Esri's Geocoder.

Can you help? Is there a way to disable the map's onMouseOver? Or any other suggestion?

Thank you.

Hugo Maurício
0 Kudos
1 Reply
RobertGage
New Contributor
Use map.disableKeyboardNavigation() to disable keyboard handling in the map.

That seems to resolve the problem for me.
0 Kudos