From 424e854778214e9d1aeececedf422edd29a09353 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 28 Feb 2017 22:54:13 +0000 Subject: [PATCH] clipboard export text stay highlighted even when button deselected i.e. if you hit button twice text stays selected. --- editor/js/ui/clipboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/js/ui/clipboard.js b/editor/js/ui/clipboard.js index 1cbb3e74f..39a1fbff7 100644 --- a/editor/js/ui/clipboard.js +++ b/editor/js/ui/clipboard.js @@ -169,6 +169,7 @@ RED.clipboard = (function() { $("#export-format-group > a").click(function(evt) { evt.preventDefault(); if ($(this).hasClass('disabled') || $(this).hasClass('selected')) { + $("#clipboard-export").focus(); return; } $(this).parent().children().removeClass('selected'); @@ -192,6 +193,7 @@ RED.clipboard = (function() { $("#export-range-group > a").click(function(evt) { evt.preventDefault(); if ($(this).hasClass('disabled') || $(this).hasClass('selected')) { + $("#clipboard-export").focus(); return; } $(this).parent().children().removeClass('selected');