My Thunderbird add-on has some code tied to the
compose-send-message event, which is fired off from within
Thunderbird's core GenericSendMessage function when a message
is about to be delivered.
I need to figure out in my code specifically how sending the
message was triggered, e.g., Ctrl-Enter, Ctrl-Shift-Enter,
"Send" button, "Send Later" button, etc.
I would rather not replace the code for all of these built-in
triggers with custom code that sticks some state somewhere to
tell me what the trigger was. I'm hoping there's some other
way to do it.
One possibility I thought of is to wonder whether there is
some way to gain access to a list of currently "active"
events, such that I could look in that list to see what kind