focus query field in search dialog automatically

master
Andrew Dolgov 15 years ago
parent f885ff6e4b
commit a44049f661

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

Loading…
Cancel
Save