mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
shortcut: open item.link
This commit is contained in:
parent
af2a01eea2
commit
e3820d1c8e
@ -432,6 +432,10 @@
|
||||
<td><kbd>s</kbd></td>
|
||||
<td>toggle an article as starred / unstarred</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><kbd>o</kbd></td>
|
||||
<td>open an article's link</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -76,6 +76,11 @@ var helperFunctions = {
|
||||
}
|
||||
}
|
||||
var shortcutFunctions = {
|
||||
openItemLink: function() {
|
||||
if (vm.itemSelectedDetails && vm.itemSelectedDetails.link) {
|
||||
window.open(vm.itemSelectedDetails.link, '_blank')
|
||||
}
|
||||
},
|
||||
toggleItemRead: function() {
|
||||
if (vm.itemSelected != null) {
|
||||
vm.toggleItemRead(vm.itemSelectedDetails)
|
||||
@ -120,6 +125,7 @@ var shortcutFunctions = {
|
||||
|
||||
// If you edit, make sure you update the help modal
|
||||
var keybindings = {
|
||||
"o": shortcutFunctions.openItemLink,
|
||||
"r": shortcutFunctions.toggleItemRead,
|
||||
"R": shortcutFunctions.markAllRead,
|
||||
"s": shortcutFunctions.toggleItemStarred,
|
||||
|
Loading…
x
Reference in New Issue
Block a user