mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Start compose when box gains focus, whether by click or tab. Trac #1245.
(imported from commit 0c67f6b4eb2387b5e85bcff6d8ea9ed8889ffaea)
This commit is contained in:
@@ -567,8 +567,8 @@ exports.validate = function () {
|
||||
$(function () {
|
||||
$("#new_message_content").autosize();
|
||||
|
||||
$("#new_message_content").click(function (e) {
|
||||
// If we click in the composebox, start up a new message
|
||||
$("#new_message_content").focus(function (e) {
|
||||
// If we click or tab into the composebox, start up a new message
|
||||
if (!compose.composing()) {
|
||||
respond_to_sent_message = true;
|
||||
if (narrow.narrowed_to_pms()) {
|
||||
|
||||
Reference in New Issue
Block a user