summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-02-03 12:35:27 +0300
committerAndrew Dolgov <[email protected]>2010-02-03 12:35:27 +0300
commita44049f6612abf8aa1d3f4d37cf992bc1875df63 (patch)
tree54457bf309afdfc89e78501a4f0c5ec639452f21 /tt-rss.js
parentf885ff6e4b50b23979848d8773739be97b329ea4 (diff)
focus query field in search dialog automatically
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 911e3b1e5..05fefea3a 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;
}