prevent submitting spread 'form' with enter
this prevents diaspora getting selected when actually filling the mastodon field. HTML selected the first button in a form by default, and this will always be diasporalektura
parent
e3e76a60b4
commit
ad8f3b8e3a
|
@ -1,4 +1,4 @@
|
|||
<form action="https://fsfe.org/share" method="GET" class="share-buttons {{.type}}" target="_blank">
|
||||
<form action="https://fsfe.org/share" method="GET" class="share-buttons {{.type}}" target="_blank" onkeypress="return event.keyCode != 13;">
|
||||
<input name="popup" id="no-share-popup-{{.type}}" type="radio" />
|
||||
<input name="ref" value="pmpc-{{.type}}" type="hidden" />
|
||||
<input name="url" value="{{ .url }}{{ .lang }}" type="hidden" />
|
||||
|
|
Loading…
Reference in New Issue