[BUG] Event stops firing after returning FALSE
Posted: Tue Nov 03, 2009 06:58
CEGUI 0.7.1 SVN Branch
I'm pretty sure this one is a bug. I'm having trouble tracking it down.
When an event call back, such as CEGUI::Editbox::CharacterKey returns FALSE, the event will not fire again unless the element has another event fire first. This is most evident with the CEGUI::Spinner. We have subscribed to the CEGUI::Spinner::CharacterKey event. When a key is pressed the event fires but if we don't handle it and return false the event will not fire again unless I click one of the spinner arrows (up or down) to change the value. The same happens with the MouseWheel and MouseDoubleClick events too.
I'm pretty sure this one is a bug. I'm having trouble tracking it down.
When an event call back, such as CEGUI::Editbox::CharacterKey returns FALSE, the event will not fire again unless the element has another event fire first. This is most evident with the CEGUI::Spinner. We have subscribed to the CEGUI::Spinner::CharacterKey event. When a key is pressed the event fires but if we don't handle it and return false the event will not fire again unless I click one of the spinner arrows (up or down) to change the value. The same happens with the MouseWheel and MouseDoubleClick events too.