diff options
author | ltGuillaume <[email protected]> | 2020-05-03 14:35:17 +0200 |
---|---|---|
committer | ltGuillaume <[email protected]> | 2020-05-03 14:35:17 +0200 |
commit | 19064864bf132eb76b1ed12f1a9d92c2f670e9e9 (patch) | |
tree | 8d3529267b9383fea71470c8a8734bcb2827f19f | |
parent | 3a4b9249a99972798ce6285bf79b8ce86971bde7 (diff) |
Allow setting Insert (45) and Delete (46) as hotkeys
These are not reported via keypress either, so handle them via keydown.
-rw-r--r-- | js/tt-rss.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index fe9f9b8fc..b57bca656 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -211,8 +211,8 @@ require(["dojo/_base/kernel", if (event.target.nodeName == "INPUT" || event.target.nodeName == "TEXTAREA") return; // Arrow buttons and escape are not reported via keypress, handle them via keydown. - // escape = 27, left = 37, up = 38, right = 39, down = 40, pgup = 33, pgdn = 34 - if (event.type == "keydown" && event.which != 27 && (event.which < 33 || event.which > 40)) return; + // escape = 27, left = 37, up = 38, right = 39, down = 40, pgup = 33, pgdn = 34, insert = 45, delete = 46 + if (event.type == "keydown" && event.which != 27 && (event.which < 33 || event.which > 46)) return; const action_name = App.keyeventToAction(event); |