From 7d0d0e48bcc79e03b040c34c937424f79f2fd448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Tue, 5 Sep 2023 11:04:17 +0200 Subject: [PATCH] DEV: Add missing keyboard shortcut on cheatsheet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #23387 introduced a new keyboard shortcut to archive private messages, but the new shortcut wasn’t added to the keyboard shortcuts cheatsheet. --- .../app/components/modal/keyboard-shortcuts-help.js | 6 ++++++ config/locales/client.en.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.js b/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.js index 8078e5aef11..9e85183556a 100644 --- a/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.js +++ b/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.js @@ -150,6 +150,12 @@ export default class KeyboardShortcutsHelp extends Component { keys1: [SHIFT, "a"], keysDelimiter: PLUS, }), + archive_private_message: buildShortcut( + "actions.archive_private_message", + { + keys1: ["a"], + } + ), }, }, navigation: { diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 9f63ffe2f9d..cbd1d6291b8 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -4163,6 +4163,7 @@ en: print: "%{shortcut} Print topic" defer: "%{shortcut} Defer topic" topic_admin_actions: "%{shortcut} Open topic admin actions" + archive_private_message: "%{shortcut} Toggle archive private message" search_menu: title: "Search Menu" prev_next: "%{shortcut} Move selection up and down"