1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

focus query field in search dialog automatically

This commit is contained in:
Andrew Dolgov 2010-02-03 12:35:27 +03:00
parent f885ff6e4b
commit a44049f661

View File

@ -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;
}