summaryrefslogtreecommitdiffstats
path: root/web/html/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/home.php')
-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 e80efaa6..62c246a8 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