mirror of
https://github.com/nkanaev/yarr.git
synced 2025-10-13 23:39:58 +00:00
keyboard shortcut to close article
This commit is contained in:
@@ -427,6 +427,7 @@
|
|||||||
<tr><td colspan=2> </td></tr>
|
<tr><td colspan=2> </td></tr>
|
||||||
<tr><td><kbd>j</kbd> <kbd>k</kbd></td> <td>next / prev article</td></tr>
|
<tr><td><kbd>j</kbd> <kbd>k</kbd></td> <td>next / prev article</td></tr>
|
||||||
<tr><td><kbd>l</kbd> <kbd>h</kbd></td> <td>next / prev feed</td></tr>
|
<tr><td><kbd>l</kbd> <kbd>h</kbd></td> <td>next / prev feed</td></tr>
|
||||||
|
<tr><td><kbd>q</kbd></td> <td>close article</td></tr>
|
||||||
|
|
||||||
<tr><td colspan=2> </td></tr>
|
<tr><td colspan=2> </td></tr>
|
||||||
<tr><td><kbd>R</kbd></td> <td>mark all read</td></tr>
|
<tr><td><kbd>R</kbd></td> <td>mark all read</td></tr>
|
||||||
|
@@ -60,6 +60,9 @@ var shortcutFunctions = {
|
|||||||
scrollBackward: function() {
|
scrollBackward: function() {
|
||||||
helperFunctions.scrollContent(-1)
|
helperFunctions.scrollContent(-1)
|
||||||
},
|
},
|
||||||
|
closeItem: function () {
|
||||||
|
vm.itemSelected = null
|
||||||
|
},
|
||||||
showAll() {
|
showAll() {
|
||||||
vm.filterSelected = ''
|
vm.filterSelected = ''
|
||||||
},
|
},
|
||||||
@@ -85,6 +88,7 @@ var keybindings = {
|
|||||||
"h": shortcutFunctions.previousFeed,
|
"h": shortcutFunctions.previousFeed,
|
||||||
"f": shortcutFunctions.scrollForward,
|
"f": shortcutFunctions.scrollForward,
|
||||||
"b": shortcutFunctions.scrollBackward,
|
"b": shortcutFunctions.scrollBackward,
|
||||||
|
"q": shortcutFunctions.closeItem,
|
||||||
"1": shortcutFunctions.showUnread,
|
"1": shortcutFunctions.showUnread,
|
||||||
"2": shortcutFunctions.showStarred,
|
"2": shortcutFunctions.showStarred,
|
||||||
"3": shortcutFunctions.showAll,
|
"3": shortcutFunctions.showAll,
|
||||||
@@ -103,6 +107,7 @@ var codebindings = {
|
|||||||
"KeyH": shortcutFunctions.previousFeed,
|
"KeyH": shortcutFunctions.previousFeed,
|
||||||
"KeyF": shortcutFunctions.scrollForward,
|
"KeyF": shortcutFunctions.scrollForward,
|
||||||
"KeyB": shortcutFunctions.scrollBackward,
|
"KeyB": shortcutFunctions.scrollBackward,
|
||||||
|
"KeyQ": shortcutFunctions.closeItem,
|
||||||
"Digit1": shortcutFunctions.showUnread,
|
"Digit1": shortcutFunctions.showUnread,
|
||||||
"Digit2": shortcutFunctions.showStarred,
|
"Digit2": shortcutFunctions.showStarred,
|
||||||
"Digit3": shortcutFunctions.showAll,
|
"Digit3": shortcutFunctions.showAll,
|
||||||
|
Reference in New Issue
Block a user