mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 02:55:55 +00:00
focus query field in search dialog automatically
This commit is contained in:
10
tt-rss.js
10
tt-rss.js
@@ -541,7 +541,10 @@ function quickMenuGo(opid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (opid == "qmcSearch") {
|
if (opid == "qmcSearch") {
|
||||||
displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat());
|
displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat(),
|
||||||
|
function() {
|
||||||
|
document.forms['search_form'].query.focus();
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1098,7 +1101,10 @@ function hotkey_handler(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 191 || keychar == '/') { // /
|
if (keycode == 191 || keychar == '/') { // /
|
||||||
displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat());
|
displayDlg("search", getActiveFeedId() + ":" + activeFeedIsCat(),
|
||||||
|
function() {
|
||||||
|
document.forms['search_form'].query.focus();
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user