mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 14:35:58 +00:00
map inline search to |
This commit is contained in:
@@ -3939,7 +3939,7 @@
|
|||||||
print "<td class=\"headlineTitle$rtl_cpart\">";
|
print "<td class=\"headlineTitle$rtl_cpart\">";
|
||||||
|
|
||||||
print "<span id=\"subtoolbar_search\"
|
print "<span id=\"subtoolbar_search\"
|
||||||
style=\"display : none\">Search: <input
|
style=\"display : none\"><input
|
||||||
id=\"subtoolbar_search_box\"
|
id=\"subtoolbar_search_box\"
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
onblur=\"javascript:enableHotkeys();\"
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
onfocus=\"javascript:disableHotkeys();\"
|
||||||
|
|||||||
12
tt-rss.js
12
tt-rss.js
@@ -1106,6 +1106,18 @@ function hotkey_handler(e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (keycode == 220 && shift_key) { // shift + |
|
||||||
|
if (document.getElementById("subtoolbar_search")) {
|
||||||
|
if (Element.visible("subtoolbar_search")) {
|
||||||
|
Element.hide("subtoolbar_search");
|
||||||
|
Element.show("subtoolbar_ftitle");
|
||||||
|
setTimeout("Element.focus('subtoolbar_search_box')", 100);
|
||||||
|
} else {
|
||||||
|
Element.show("subtoolbar_search");
|
||||||
|
Element.hide("subtoolbar_ftitle");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prefix f */
|
/* Prefix f */
|
||||||
|
|||||||
@@ -1836,7 +1836,6 @@ function fixHeadlinesOrder(ids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function subtoolbarSearch() {
|
function subtoolbarSearch() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
var q = document.getElementById("subtoolbar_search_box");
|
var q = document.getElementById("subtoolbar_search_box");
|
||||||
|
|||||||
Reference in New Issue
Block a user