summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-13 15:30:33 +0300
committerAndrew Dolgov <[email protected]>2010-11-13 15:30:33 +0300
commitac743c83214291d6e76bf47a88f9a5f2f2739c03 (patch)
treed5ac3763105fa2dc5e090d88ac932dae467707b7 /tt-rss.js
parent343d99f461d0ac6304dedacb43e8c391907108e3 (diff)
allow s, S, u hotkeys to work on selection instead of active article
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 9ab2d353a..a3bfbde5d 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -841,6 +841,7 @@ function hotkey_handler(e) {
}
if (keycode == 16) return; // ignore lone shift
+ if (keycode == 17) return; // ignore lone ctrl
if ((keycode == 70 || keycode == 67 || keycode == 71)
&& !hotkey_prefix) {
@@ -966,27 +967,18 @@ function hotkey_handler(e) {
}
if (keycode == 83 && shift_key) { // S
- var id = getActiveArticleId();
- if (id) {
- togglePub(id);
- }
+ selectionTogglePublished(undefined, false, true);
return;
}
if (keycode == 83) { // s
- var id = getActiveArticleId();
- if (id) {
- toggleMark(id);
- }
+ selectionToggleMarked(undefined, false, true);
return;
}
if (keycode == 85) { // u
- var id = getActiveArticleId();
- if (id) {
- toggleUnread(id);
- }
+ selectionToggleUnread(undefined, false, true)
return;
}