]> git.openstreetmap.org Git - rails.git/commitdiff
Disable keyboard control of the map as it causes problems by catching
authorTom Hughes <tom@compton.nu>
Sun, 3 Feb 2008 23:57:37 +0000 (23:57 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 3 Feb 2008 23:57:37 +0000 (23:57 +0000)
keypresses in other parts of the page. Closes #659.

public/javascripts/map.js

index abbc7f8eaa9a81860a96836f2b5a7f255fcfeeb9..e4e808a673b05ef72036a6a8902f60b32ba513fa 100644 (file)
@@ -29,7 +29,7 @@ function createMap(divName) {
    map.addLayer(markers);
 
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addLayer(markers);
 
    map.addControl(new OpenLayers.Control.LayerSwitcher());
-   map.addControl(new OpenLayers.Control.KeyboardDefaults());
+   // map.addControl(new OpenLayers.Control.KeyboardDefaults());
 
    return map;
 }
 
    return map;
 }