How to achieve preventDefault in AIHostAdapter.aip
AIHostAdapter.aip is a plugin that captures events such as “when the selection has changed” in Illustrator’s CEP. It is reportedly included as a standard feature starting with version 30.3.
Since this plugin can capture events that occur before a menu command is executed, if it can cancel the command using `preventDefault` or similar methods, it should be possible to prevent situations such as a user accidentally trying to overwrite an opened .ai document as a non-editable .pdf.
How can `preventDefault` be implemented? If such functionality is implemented in the plugin, it should be possible to achieve this by notifying the plugin via `CSEvent` in `CSInterface`. Or is it impossible to stop the action once a `Notifier` has been issued, due to the SDK’s specifications?
