[OpenLayers-Trac] Re: [OpenLayers] #1027: With keyboardDefaults on, k and m keys interfere with text boxes

OpenLayers trac-20090302 at openlayers.org
Mon Jun 27 07:40:55 EDT 2011


#1027: With keyboardDefaults on, k and m keys interfere with text boxes
--------------------------------------+-------------------------------------
 Reporter:  openlayers                |       Owner:  2.6             
     Type:  bug                       |      Status:  new             
 Priority:  minor                     |   Milestone:  2.12 Release    
Component:  Control.KeyboardDefaults  |     Version:  SVN             
 Keywords:  keyboard arrows zoom      |       State:  Needs Discussion
--------------------------------------+-------------------------------------

Comment(by ossipoff):

 I just uploaded my solution to the problem. Instead of keyboard events
 being catched globally on the entire document I changed the KeyBoard
 handler so it can be set to listen to a specific DOM element. In this case
 the map div. This fix requires the map div to have focus. In firefox this
 requires the tabindex attribute to be set on the div, and a click handler
 on the map object to set the focus when the map is clicked.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1027#comment:14>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list