mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user