[openstreetmap/openstreetmap-website] Fix: prevent form submission breaking language selector (#6598) (PR #6599)

Tom Hughes notifications at github.com
Mon Dec 8 22:49:27 UTC 2025


tomhughes left a comment (openstreetmap/openstreetmap-website#6599)

Is there really not a simpler way of blocking enter in the search field than this?

This is actually blocking all enter presses in the dialog unless they're on one of the language entries but I believe it's only the input field that's actually a problem so maybe we can just put something on that field?

If it does need to be done by intercepting keydown do we really need to check both the name and the code?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6599#issuecomment-3629348981
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6599/c3629348981 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251208/1b021b98/attachment.htm>


More information about the rails-dev mailing list