hotkeys: Map CTRL + . to narrow to compose box target.

Also adds relevant tests and documentation. We currently
do not narrow to a new topic, and instead just narrow to
the stream. Similarly, we do not narrow to a PM if any of
the recipients are invalid.
This commit is contained in:
Rohitt Vashishtha
2018-11-29 23:20:10 +00:00
committed by Tim Abbott
parent 3079cf803c
commit ee3b4f3ee9
7 changed files with 185 additions and 2 deletions

View File

@@ -421,6 +421,11 @@ exports.on_narrow = function (opts) {
return;
}
if (opts.trigger === "narrow_to_compose_target") {
compose_fade.update_message_list();
return;
}
if (narrow_state.narrowed_by_topic_reply()) {
exports.on_topic_narrow();
return;