]> git.lizzy.rs Git - rust.git/commit
Fixes submit event of the search input
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 12 Dec 2020 22:30:13 +0000 (23:30 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 12 Dec 2020 23:25:06 +0000 (00:25 +0100)
commit98118bbde42112f74d2707c0a167a0a27191438c
tree1963363be6bb90bfa6015838ada03de57509edc9
parentc3ed6681ff8d446e68ce272be4bf66f4145f6e29
Fixes submit event of the search input

In HTML, when a button follows an input, if the enter keep is pressed on the input, instead of sending the submit event to the input, it'll create a click event on the button following it, which in this case made the help popup show up whenever "enter" was pressed.
src/librustdoc/html/layout.rs