FEATURE: List search menu shortcuts in instructions modal (#9273)

This commit is contained in:
Dan Ungureanu 2020-03-25 17:11:33 +02:00 committed by GitHub
parent 7d7c5641b4
commit 3ae26c6c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View File

@ -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"]
})
}
}
});

View File

@ -78,5 +78,12 @@
<li>{{html-safe shortcuts.actions.topic_admin_actions}}</li>
</ul>
</section>
<section>
<h4>{{i18n "keyboard_shortcuts_help.search_menu.title"}}</h4>
<ul>
<li>{{html-safe shortcuts.search_menu.prev_next}}</li>
<li>{{html-safe shortcuts.search_menu.insert_url}}</li>
</ul>
</section>
</div>
{{/d-modal-body}}

View File

@ -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: