From bfd0708f3a52a743aa3c69d0497f738b029b824b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Tue, 20 Dec 2011 22:43:57 +0200 Subject: [PATCH] Enable search by pressing enter in web remote. --- openlp/plugins/remotes/html/openlp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 943a38512..94b76c3f3 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -285,6 +285,8 @@ $("#controller-top-unblank, #controller-btm-unblank").live("click", OpenLP.unbla $("#alert-submit").live("click", OpenLP.showAlert); // Search $("#search-submit").live("click", OpenLP.search); +$("#search-text").live("keypress", function(event){ + if (event.which == 13) { OpenLP.search(event); }}); $("#go-live").live("click", OpenLP.goLive); $("#add-to-service").live("click", OpenLP.addToService); // Poll the server twice a second to get any updates.