mirror of
https://github.com/nkanaev/yarr.git
synced 2025-11-07 18:09:36 +00:00
readability keyboard shortcut
This commit is contained in:
@@ -95,6 +95,9 @@ var shortcutFunctions = {
|
||||
window.open(vm.itemSelectedDetails.link, '_blank')
|
||||
}
|
||||
},
|
||||
toggleReadability: function() {
|
||||
vm.toggleReadability()
|
||||
},
|
||||
toggleItemRead: function() {
|
||||
if (vm.itemSelected != null) {
|
||||
vm.toggleItemRead(vm.itemSelectedDetails)
|
||||
@@ -146,6 +149,7 @@ var shortcutFunctions = {
|
||||
// If you edit, make sure you update the help modal
|
||||
var keybindings = {
|
||||
"o": shortcutFunctions.openItemLink,
|
||||
"i": shortcutFunctions.toggleReadability,
|
||||
"r": shortcutFunctions.toggleItemRead,
|
||||
"R": shortcutFunctions.markAllRead,
|
||||
"s": shortcutFunctions.toggleItemStarred,
|
||||
|
||||
Reference in New Issue
Block a user