|
@@ -93,20 +93,17 @@ $(function () {
|
|
|
|
|
|
g.focusPaste = function () {
|
|
|
setTimeout(function () {
|
|
|
- pasteCatcher.focus();
|
|
|
- pasteCatcher.click()
|
|
|
+ pasteCatcher.focus()
|
|
|
}, 100);
|
|
|
}
|
|
|
|
|
|
$(document).on('click', function (e) {
|
|
|
- if (e.target == document.body) {
|
|
|
+ if (e.target == document.body && pastearea.is(':visible')) {
|
|
|
e.preventDefault()
|
|
|
g.focusPaste();
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- g.focusPaste();
|
|
|
-
|
|
|
|
|
|
$(document).on('paste', function (e) {
|
|
|
if (!pastearea.is(':visible')) {
|