Shortcuts

by kiyoshi, Wednesday, March 27, 2013, 14:22 (3832 days ago)

I use Firefox.
I pressed 's' key, mark as starred and quick search 's'.
So please merge this patch.

--- selfoss/public/js/selfoss-shortcuts.js
+++ selfoss/public/js/selfoss-shortcuts.js
@@ -18,21 +18,25 @@
// star/unstar
$(document).bind('keydown', 's', function() {
$('.entry.selected .entry-starr').click();
+ return false;
});

// mark/unmark
$(document).bind('keydown', 'm', function() {
$('.entry.selected .entry-unread').click();
+ return false;
});

// open target
$(document).bind('keydown', 'v', function() {
window.open($('.entry.selected .entry-source').attr('href'));
+ return false;
});

// mark all as read
$(document).bind('keydown', 'ctrl+m', function() {
$('#nav-mark').click();
+ return false;
});

// throw (mark as read & open next)

RSS Feed of thread
powered by my little forum