From: Andrew Dolgov Date: Wed, 3 Feb 2010 09:35:27 +0000 (+0300) Subject: focus query field in search dialog automatically X-Git-Tag: 1.4.1~24 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a44049f6612abf8aa1d3f4d37cf992bc1875df63;p=tt-rss.git focus query field in search dialog automatically --- diff --git a/tt-rss.js b/tt-rss.js index 911e3b1e..05fefea3 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -541,7 +541,10 @@ function quickMenuGo(opid) { } if (opid == "qmcSearch") { - displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat()); + displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat(), + function() { + document.forms['search_form'].query.focus(); + }); return; } @@ -1098,7 +1101,10 @@ function hotkey_handler(e) { } if (keycode == 191 || keychar == '/') { // / - displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat()); + displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat(), + function() { + document.forms['search_form'].query.focus(); + }); return false; }