summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/html/home.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/html/home.php b/web/html/home.php
index e80efaa..62c246a 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -124,6 +124,15 @@ $(document).ready(function() {
return item;
}
}).attr('autocomplete', 'off');
+
+ $('#pkgsearch-field').keydown(function(e) {
+ if (e.keyCode == 13) {
+ var selectedItem = $('ul.pkgsearch-typeahead li.active');
+ if (selectedItem.length == 0) {
+ $('#pkgsearch-form').submit();
+ }
+ }
+ });
});
</script>
<?php