summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-17 16:58:15 +0100
committerAndrew Dolgov <[email protected]>2008-05-17 16:58:15 +0100
commit314fcd2bfdc42bef86ff479d720d7e9352612ce8 (patch)
tree8d7a44bca800dfa2d85328314d8780587490574c /tt-rss.js
parentc771953ddfb1450989d7405d38aff81129c0182a (diff)
new shortcut: tab (selects article under cursor)
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/tt-rss.js b/tt-rss.js
index c86045840..6dd342745 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -1012,13 +1012,15 @@ function hotkey_handler(e) {
if (keycode == 78 || keycode == 40) { // n, down
if (typeof moveToPost != 'undefined') {
- return moveToPost('next');
+ moveToPost('next');
+ return false;
}
}
if (keycode == 80 || keycode == 38) { // p, up
if (typeof moveToPost != 'undefined') {
- return moveToPost('prev');
+ moveToPost('prev');
+ return false;
}
}
@@ -1047,15 +1049,15 @@ function hotkey_handler(e) {
return;
}
- if (keycode == 84) { // t
+ if (keycode == 84 && shift_key) { // T
var id = getActiveArticleId();
if (id) {
editArticleTags(id, getActiveFeedId(), isCdmMode());
}
}
-/* if (keycode == 84) { // t
- var id = getActiveArticleId();
+ if (keycode == 9) { // tab
+ var id = getArticleUnderPointer();
if (id) {
var cb = document.getElementById("RCHK-" + id);
@@ -1063,8 +1065,10 @@ function hotkey_handler(e) {
cb.checked = !cb.checked;
toggleSelectRowById(cb, "RROW-" + id);
}
+
+ return false;
}
- } */
+ }
if (keycode == 79) { // o
if (getActiveArticleId()) {
@@ -1346,4 +1350,3 @@ function hotkey_handler(e) {
}
}
-