Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add missing keyboard shortcut on cheatsheet

Loïc Guitaut7d0d0e48bcc7
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"