Start compose when box gains focus, whether by click or tab. Trac #1245.

(imported from commit 0c67f6b4eb2387b5e85bcff6d8ea9ed8889ffaea)
This commit is contained in:
Kevin Mehall
2013-06-10 17:47:12 -04:00
parent c2ab6428b8
commit 63babd642c

View File

@@ -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()) {