]> git.ipfire.org Git - thirdparty/patchwork.git/commit
filters: Submit the form when <Enter> is pressed on a closed submitter field
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 24 Aug 2015 16:49:52 +0000 (17:49 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 5 Nov 2015 03:56:27 +0000 (03:56 +0000)
commitedffce4856d4f5d86ca6c819de14cd43f9c4a333
tree7a1ee5c66962bcd2fd226b8fd067130cd9645723
parent34ca190e83a0075d28793744e904cfb450e5bf2a
filters: Submit the form when <Enter> is pressed on a closed submitter field

<Enter> when an element of the form is focused should submit the form.
Before this patch, when <Enter> was pressed on the submitter button,
nothing would happen.

So, we tweak our <Enter> handling on the submitter input a bit more:
<Enter> can be used to select the submitter from the autocompletion
list, but, when pressed a second time (ie. when the autocompletion
option has be selected and the dropdown isn't shown), we submit the
form.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
patchwork/templates/patchwork/filters.html