Hello Michael and everyone else! I solved it now, using the way like OpenLayers.Popup works, register all the available events for this.div and stop event bubbling but don't prevent the default actions: OpenLayers.Event.stop(evt, true);
The second param is the important one :-) Just check OpenLayers.Popup for the registerEvents() and onmousedown() etc. functions! Regards, JS Michael Hampton wrote: > > How can I enable default event handling for a textfield input in a custom > control? > > When I place a textfield into a control on the map, it does not receive > mouse events or keyboard events. > How can I make the textfield receive these events and handle them as it > normally would? > -- View this message in context: http://n2.nabble.com/Textfield-Event-Handling-in-a-Custom-Control-tp4165457p4591043.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
