summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.php2
-rw-r--r--tt-rss.js12
-rw-r--r--viewfeed.js3
3 files changed, 14 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index fcbfe40fb..698efeb20 100644
--- a/functions.php
+++ b/functions.php
@@ -3939,7 +3939,7 @@
print "<td class=\"headlineTitle$rtl_cpart\">";
print "<span id=\"subtoolbar_search\"
- style=\"display : none\">Search: <input
+ style=\"display : none\"><input
id=\"subtoolbar_search_box\"
onblur=\"javascript:enableHotkeys();\"
onfocus=\"javascript:disableHotkeys();\"
diff --git a/tt-rss.js b/tt-rss.js
index f1fe96998..247dca2a2 100644
--- a/tt-rss.js
+++ b/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 */
diff --git a/viewfeed.js b/viewfeed.js
index ce8a14fa2..da03a6a2d 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -1836,7 +1836,6 @@ function fixHeadlinesOrder(ids) {
}
function subtoolbarSearch() {
-
try {
var q = document.getElementById("subtoolbar_search_box");
@@ -1871,7 +1870,7 @@ function subtoolbarSearch() {
} catch (e) {
exception_error("subtoolbarSearch", e);
- }
+ }
}
function getArticleUnderPointer() {