]> git.openstreetmap.org Git - rails.git/commit
Let enter submit the directions form
authorSyogo-Suganoya <registration@ssuganoya.com>
Wed, 18 Nov 2026 11:15:04 +0000 (20:15 +0900)
committerSyogo-Suganoya <registration@ssuganoya.com>
Tue, 24 Nov 2026 03:09:23 +0000 (12:09 +0900)
commit78b45257dfd0a0f1b1863a484136b987f7789c17
treef9099258963c275402a49e3dccf2ea6b82e636ae
parentd88880b22e20ddbd1ab46f14728580a8c397d37a
Let enter submit the directions form

The directions form has two text fields and no submit button, so
browsers never submit it implicitly when enter is pressed and its submit
handler, which requests the route, was unreachable from the keyboard.
Routes still appeared while typing because changing a field triggers a
route request, but after closing the directions sidebar there was no
way to get the route back without editing one of the endpoints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
app/views/layouts/_search.html.erb
test/system/directions_test.rb