Mouse button abnormally released/pressed
OS: MacOS Sonoma 14.2.1
GPU: Intel Iris Plus Graphics 655 1536MB
Ai version: Adobe Illustrator 2024 28.4.1
Hi,
we are developers of an app with hotkey customizer running in background.
The app works fine most of the time,
while confronting some difficulties on interacting with Ai.
The basic idea of the app is registrating key event observer to the system,
then either intercepting the customized hotkey or leaving others to system for further transmission.
However, after we register the listener,
Ai seems sometimes skip the mouse-releasing event of a click,
and then hanged in a "dragging" state until another click.
(and hence moving the dragged object to other position, not surprisingly.)
After a rough scan in this forum, we have found some feedbacks might be related (list below.)
Is there any possible indications or suggestions to this kind of issue?
Or is there any existing logic in Ai to intercept/interpret keys?
We are tremendously eager to solve this issue for better user experiences and willing to give any help for debugging.
Please let us know if any helpful info is needed.
Details on the implementations and some observations:
We call CGEventTapCreate with kCGHIDEventTap, kCGHeadInsertEventTap, kCGEventTapOptionDefault as parameters.
The app works well with Ai when registering with NXKEYDOWNMASK | NXKEYUPMASK | NXFLAGSCHANGEDMASK and breaks when we add NXSYSDEFINEDMASK to it.The issue seems happen more frequently when clicking "in" the empty area of Ai objects than at the bounding edges.
Also, it works correctly when elapsing long enough between pressing and releasing.Instead of the mouse-releasing event which should be sent right after the pressing event,
our app observed an event of kCGEventTapDisabledByTimeout after a long delay.The issue exists regardless of the click being triggered with touchpad or a mouse (Logitech MX585)
Feedbacks might be related:
https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/41769175-mouse-tablet-issues-when-using-hej-stylus-in-comb
https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/32054200-mouse-click-sticking
https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/32538682-click-and-touch-release-problems-illustrator-cc-20
https://illustrator.uservoice.com/forums/601447-illustrator-desktop-bugs/suggestions/42787823-clicking-an-object-force-drags-it-wherever-my-mous