From e1096ff395136b98db19bdb4fa71d0404505c789 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 1 Nov 2014 18:09:54 +0200 Subject: [PATCH] focus text to allow copy, fixes #2525 --- static/js/textPanel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/textPanel.js b/static/js/textPanel.js index c2f49426..538cde2e 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -429,7 +429,13 @@ pandora.ui.textHTML = function(text) { scrollToPosition(); return that; }; - + that.bindEvent({ + mousedown: function() { + setTimeout(function() { + !Ox.Focus.focusedElementIsInput() && that.gainFocus(); + }); + } + }); return that; };