From e339354cc9b27756d4fd167ffca6a43492c11075 Mon Sep 17 00:00:00 2001 From: nkanaev Date: Tue, 23 Sep 2025 22:08:04 +0100 Subject: [PATCH] keyboard shortcut to close article --- src/assets/index.html | 1 + src/assets/javascripts/key.js | 5 +++++ 2 files changed, 6 insertions(+) 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,