Original commit message from CVS: Some event handling added by Renato Filho <renato.filho@indt.org.br>