diff --git a/app/assets/javascripts/discourse/controllers/keyboard-shortcuts-help.js b/app/assets/javascripts/discourse/controllers/keyboard-shortcuts-help.js index 1c2d8f42218..62feb5b4048 100644 --- a/app/assets/javascripts/discourse/controllers/keyboard-shortcuts-help.js +++ b/app/assets/javascripts/discourse/controllers/keyboard-shortcuts-help.js @@ -172,6 +172,16 @@ export default Controller.extend(ModalFunctionality, { keys1: [SHIFT, "a"], keysDelimiter: PLUS }) + }, + search_menu: { + prev_next: buildShortcut("search_menu.prev_next", { + keys1: ["↑"], + keys2: ["↓"], + shortcutsDelimiter: "slash" + }), + insert_url: buildShortcut("search_menu.insert_url", { + keys1: ["a"] + }) } } }); diff --git a/app/assets/javascripts/discourse/templates/modal/keyboard-shortcuts-help.hbs b/app/assets/javascripts/discourse/templates/modal/keyboard-shortcuts-help.hbs index 2203c901748..cfa90cb67ef 100644 --- a/app/assets/javascripts/discourse/templates/modal/keyboard-shortcuts-help.hbs +++ b/app/assets/javascripts/discourse/templates/modal/keyboard-shortcuts-help.hbs @@ -78,5 +78,12 @@
  • {{html-safe shortcuts.actions.topic_admin_actions}}
  • +
    +

    {{i18n "keyboard_shortcuts_help.search_menu.title"}}

    + +
    {{/d-modal-body}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index e9ad9aac7ce..a793ae920d0 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -3091,6 +3091,10 @@ en: print: "%{shortcut} Print topic" defer: "%{shortcut} Defer topic" topic_admin_actions: "%{shortcut} Open topic admin actions" + search_menu: + title: "Search Menu" + prev_next: "%{shortcut} Move selection up and down" + insert_url: "%{shortcut} Insert selection into open composer" badges: earned_n_times: