{
currentTree = tree;
KeySequence sequence = tree.getSequence();
Plugin plugin = PluginFocusMgr.getInstance().getFocusedPlugin();
if (plugin == null)
{
plugin = ApplicationBase.getInstance();
}
// First, fire the key event bottom up starting from the current plugin
KeySequenceEvent event = new KeySequenceEvent(plugin, sequence, JaspiraEvent.TYPE_BOTTOM_UP);
plugin.fireEvent(event);
if (!event.isConsumed())
{
// None cared, broadcast the event application-wide
event = new KeySequenceEvent(plugin, sequence, JaspiraEvent.TYPE_FLOOD);
plugin.fireEvent(event);
}
if (currentTree.hasChildren())
{
// Set up the time that reset the current key sequence