From 53c5ddea1a2c4c1ec8918225134be2b75e269881 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 4 Nov 2017 20:44:15 +0000 Subject: Set first input focus on popup --- gentoobrowse/js/js.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gentoobrowse/js/js.js b/gentoobrowse/js/js.js index 41a7631..a615613 100644 --- a/gentoobrowse/js/js.js +++ b/gentoobrowse/js/js.js @@ -8,6 +8,9 @@ bottom: 240 } }); + $('form').on('shown', function(e) { + $(this).find('input:first').focus(); + }); }) }(window.jQuery); -- cgit v1.2.3