2
0
mirror of https://github.com/urbanguacamole/torrent-paradise synced 2024-10-31 21:20:13 +00:00

Add ability to launch search by hitting Enter

This commit is contained in:
Urban Guacamole 2019-01-13 19:59:46 +01:00
parent 925f383201
commit ac37fbf337

View File

@ -7,3 +7,9 @@ window.addEventListener("message", receiveMessage, false);
function receiveMessage(event){ function receiveMessage(event){
app.resultPageHeight = event.data app.resultPageHeight = event.data
} }
document.getElementById('searchbox').onkeydown = function(event) {
if (event.keyCode == 13) {
searchTriggered()
}
}