I have a similar problem, and checked with Chrome debugger the
possibilities to handle it.

The bad news: google captures all the events of the input field,
before it's possible to go in-between. So it's not possible to use
event handlers of your favorite framework (in my case: dojo)

The good news: there is a workaround by using google's event handlers.
It's not nice but it works:

                        var input = document.getElementById('inputId');
                        // dojo.connect(input, 'onkeydown', function(e) {
                        google.maps.event.addDomListener(input, 'keydown', 
function(e) {
                                if (e.keyCode == 13)
                                {
                                        if (e.preventDefault)
                                        {
                                                e.preventDefault();
                                        }
                                        else
                                        {
                                                // Since the google event 
handler framework does not handle
early IE versions, we have to do it by our self. :-(
                                                e.cancelBubble = true;
                                                e.returnValue = false;
                                        }
                                }
                        });

Tested with IE8 and IE7 emulators within IE9, IE9, Firefox 4.0, Chrome
12
doctype XHTML 1.0 transitional

Have fun

Andreas
Naradana WebSolutions

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to