From 287aa49252eb1420bd7f950370965803c582b350 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 30 Oct 2015 11:02:58 -0700 Subject: [PATCH] After choosing a file, focus the message field Allow the user to edit the message and/or hit enter to send the image without having to click. // FREEBIE --- js/views/conversation_view.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index bbcbe700..a9dba1be 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -80,7 +80,11 @@ 'click .openInbox' : 'openInbox', 'click' : 'onClick', 'select .entry': 'messageDetail', - 'force-resize': 'forceUpdateMessageFieldSize' + 'force-resize': 'forceUpdateMessageFieldSize', + 'click .choose-file': 'focusMessageField' + }, + focusMessageField: function() { + this.$messageField.focus(); }, fetchMessages: function() { this.model.fetchMessages();