diff options
author | Andrew Dolgov <[email protected]> | 2010-02-03 12:35:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-02-03 12:35:27 +0300 |
commit | a44049f6612abf8aa1d3f4d37cf992bc1875df63 (patch) | |
tree | 54457bf309afdfc89e78501a4f0c5ec639452f21 | |
parent | f885ff6e4b50b23979848d8773739be97b329ea4 (diff) |
focus query field in search dialog automatically
-rw-r--r-- | tt-rss.js | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; } |