Jonathan Kamens
unread,Jun 4, 2012, 12:39:24 PM6/4/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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
of event was the trigger for the currently running JavaScript
code.
Any suggestions?
Thanks,
jik