Shortcut is working fine but freezes AE for a few seconds
Hi,
I've developed an extension for AE, which was working fine until I updated to the second last version (3 months ago aprox).
In the extension you can trigger a specific function in two ways.
The first one is by pressing a button, the second one is by using a shortcut. The first method is working fine, the second method executes fine but sometimes freezes the software for a few seconds.
I don't know where the problem could be to be honest and so far I don't know how to find it.
Anyway, the shortcut works like this:
it opens a second extension which runs this code
(function () {
'use strict';
var csInterface = new CSInterface();
var event = new CSEvent("myExtension.copyShortcut", "APPLICATION");
event.data = "Copy";
csInterface.dispatchEvent(event);
csInterface.closeExtension();
}());
The main extension is listening and when it receives the order it executes the callback function.
var csInterface = new CSInterface();
csInterface.addEventListener("myExtension.copyShortcut", callbackCopyShortcut);
Any ideas?
Thanks
