From 31d861d19b069e81d8003afc728f167eaf70e63a Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 5 Aug 2013 09:49:38 +0800 Subject: [PATCH] MDL-35981 comments: Fix for keyboard control of "add a comment" --- comment/comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment/comment.js b/comment/comment.js index 6c0e310b75f..d1cf768a0f3 100644 --- a/comment/comment.js +++ b/comment/comment.js @@ -354,7 +354,7 @@ M.core_comment = { if (ta) { //toggle_textarea.apply(ta, [false]); //// reset textarea size - ta.on('click', function() { + ta.on('focus', function() { this.toggle_textarea(true); }, this); //ta.onkeypress = function() {