composebox: Blur PM recipient input after close.

Previously the private_message_recipient input remained focused after
closing the composebox with Escape. On Firefox this resulted in it
gobbling up all further keyboard shortcuts until you clicked
somewhere. On Chromium this bug didn't occur because it automatically
blurs hidden inputs.

Introduced in 3a1bf04a56.

Fixes #15849.
This commit is contained in:
Gittenburg 2020-07-18 20:57:27 +02:00 committed by Tim Abbott
parent ae497c68ab
commit ed5a56ce53
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
const autosize = require("autosize"); const autosize = require("autosize");
exports.blur_textarea = function () { exports.blur_textarea = function () {
$(".message_comp").find("input, textarea, button").trigger("blur"); $(".message_comp").find("input, textarea, button, #private_message_recipient").trigger("blur");
}; };
function hide_box() { function hide_box() {