mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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:
committed by
Tim Abbott
parent
3079cf803c
commit
ee3b4f3ee9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user