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:
bartek 2019-04-13 22:12:40 +02:00 committed by Tim Abbott
parent 1d93d99b57
commit df8d3dc334
1 changed files with 1 additions and 1 deletions

View File

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