Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Close open items
Browse files Browse the repository at this point in the history
Key 'o' open the selected entry, someitmes you open multiple items by
serveral mouse clicks. Shift + o closes all open items
  • Loading branch information
Eric committed Apr 22, 2013
1 parent 903c184 commit c2cddcf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _docs/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ <h2>Shortcuts</h2>
</tr>
<tr>
<td class="documentation-first-column">o</td>
<td>open current item</td>
<td>open / close current item</td>
</tr>
<tr>
<td class="documentation-first-column">shift + o</td>
<td>close all open items</td>
</tr>
<tr>
<td class="documentation-first-column">shift + n</td>
Expand Down
6 changes: 6 additions & 0 deletions public/js/selfoss-shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ selfoss.shortcuts = {
return false;
});

// 'Shift + o': close open entries
$(document).bind('keydown', 'Shift+o', function(e) {
e.preventDefault();
$('.entry-content, .entry-toolbar').hide();
});

// 'v': open target
$(document).bind('keydown', 'v', function(e) {
window.open($('.entry.selected .entry-source').attr('href'));
Expand Down

0 comments on commit c2cddcf

Please sign in to comment.