mirror of https://github.com/zulip/zulip.git
message_edit: Set focus to topic_edit when TOPIC_ONLY.
The historical behavior of having `Enter` exit was optimized for the "View source" use case; but `Esc` now handles that reasoanbly, and we really should make it convenient to type in the user-editable text box here. Fixes part 1 of #11834.
This commit is contained in:
parent
1d93d99b57
commit
df8d3dc334
|
@ -403,7 +403,7 @@ function edit_message(row, raw_content) {
|
|||
message_edit_topic.val('');
|
||||
message_edit_topic.focus();
|
||||
} else if (editability === editability_types.TOPIC_ONLY) {
|
||||
row.find(".message_edit_cancel").focus();
|
||||
row.find(".message_edit_topic").focus();
|
||||
} else {
|
||||
message_edit_content.focus();
|
||||
// Put cursor at end of input.
|
||||
|
|
Loading…
Reference in New Issue