03-13-2014, 11:23 AM
(03-12-2014, 10:33 AM)VincentDoan Wrote: I have a need to detect user pressing a key on the keyboard.
I plan to use Cocoa key event. Is this wise??? Since CORE do not have such support.
Since we have not tried this yet, I can't really provide much information. It's obvious that Illustrator is tracking keypresses, because a simple keypress without a modifier (e.g. "v") will select a tool. You might run into trouble trying to track keypresses as a plugin running inside of Illustrator simply because Illustrator is already doing so.
If you try it, let us know how it goes!