Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Typing in diary form makes map move around #659

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Typing in diary form makes map move around #659

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: osm[at]bcowan.fastmail.co.uk
[Submitted to the original trac issue database at 5.13am, Wednesday, 30th January 2008]

If you start the map, then start typing in the diary form, the map will move around and zoom in and out as you type. This is slightly strange.

k/+ = zoom in
m/- = zoom out
' = go east

= go east a lot

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 2.00pm, Wednesday, 30th January 2008]

It's not just the diary form - any typing in a window with a map does it. OpenLayers seems to grab all keypresses in the whole window rather than just ones over the map. I'm not sure there is much I can do about it other than turning off keyboard control for OpenLayers.

@openstreetmap-trac
Copy link
Author

Author: osm[at]bcowan.fastmail.co.uk
[Added to the original trac issue at 1.09am, Thursday, 31st January 2008]

See http://trac.openlayers.org/ticket/1027 . It suggests that switching off keyboard control is the only way. Why was keyboard control enabled?

@openstreetmap-trac
Copy link
Author

Author: tomhughes
[Added to the original trac issue at 11.57pm, Sunday, 3rd February 2008]

(In [6770]) Disable keyboard control of the map as it causes problems by catching
keypresses in other parts of the page. Closes #659.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant