From 9598ef6f6c9538c9244c62e79d26d5d1d61230c1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 12 Aug 2016 18:00:16 +0300 Subject: juick-www: postformlistener in thread --- juick-www/src/main/static/scripts.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-www/src/main') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 0c701359..ee0c0912 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -556,6 +556,9 @@ ready(function () { }; document.querySelectorAll('textarea.reply').forEach(function(e) { e.addEventListener('click', insertButtons); + e.addEventListener('keypress', function(e) { + postformListener(e.target, e); + }); }); var insertPMButtons = function (e) { -- cgit v1.2.3