From f31c379369e82b241e0181a7f40ae80dd6c891be Mon Sep 17 00:00:00 2001 From: Henrik Fehlauer Date: Sat, 27 Mar 2021 18:00:00 +0000 Subject: [PATCH] Fix broken Return key in export route dialog 2a431932 made it possible to press `Return` to confirm the export dialog. After 5b52abc1 this stopped working though, even when the text input had focus. This is due to moving the `` out of the `
` and referencing the form's `name` attribute instead. However "The value of [the form] attribute must be the id of a in the same document" according to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button. Adding such an `id` restores the `Return` key to working properly. The same change is done for the no-go form, where the same issue would otherwise affect a later patch adding similar `Return` key handling. Test Plan: - Create Route, open "Export route" dialog. - Move focus to an input field. - Press `Return`. - The file dialog for saving should open. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 7c691b7..03efa89 100644 --- a/index.html +++ b/index.html @@ -427,7 +427,7 @@