diff --git a/src/assets/index.html b/src/assets/index.html index 013de99..2ce4f2f 100644 --- a/src/assets/index.html +++ b/src/assets/index.html @@ -427,6 +427,7 @@   j k next / prev article l h next / prev feed + q close article   R mark all read diff --git a/src/assets/javascripts/key.js b/src/assets/javascripts/key.js index c424b2f..b8a9ed7 100644 --- a/src/assets/javascripts/key.js +++ b/src/assets/javascripts/key.js @@ -60,6 +60,9 @@ var shortcutFunctions = { scrollBackward: function() { helperFunctions.scrollContent(-1) }, + closeItem: function () { + vm.itemSelected = null + }, showAll() { vm.filterSelected = '' }, @@ -85,6 +88,7 @@ var keybindings = { "h": shortcutFunctions.previousFeed, "f": shortcutFunctions.scrollForward, "b": shortcutFunctions.scrollBackward, + "q": shortcutFunctions.closeItem, "1": shortcutFunctions.showUnread, "2": shortcutFunctions.showStarred, "3": shortcutFunctions.showAll, @@ -103,6 +107,7 @@ var codebindings = { "KeyH": shortcutFunctions.previousFeed, "KeyF": shortcutFunctions.scrollForward, "KeyB": shortcutFunctions.scrollBackward, + "KeyQ": shortcutFunctions.closeItem, "Digit1": shortcutFunctions.showUnread, "Digit2": shortcutFunctions.showStarred, "Digit3": shortcutFunctions.showAll,