From 63babd642cecc0e13e76f6f67b63dfe877e75d0b Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Mon, 10 Jun 2013 17:47:12 -0400 Subject: [PATCH] Start compose when box gains focus, whether by click or tab. Trac #1245. (imported from commit 0c67f6b4eb2387b5e85bcff6d8ea9ed8889ffaea) --- zephyr/static/js/compose.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index a69833bdd0..0d04e1ab3e 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -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()) {