[DEBUG] corection of the broadcast message of shortcut

This commit is contained in:
Edouard DUPIN 2012-11-27 23:02:48 +01:00
parent e0bdd48984
commit acd70a322c

View File

@ -320,12 +320,11 @@ bool ewol::Widget::OnEventShortCut(ewol::SpecialKey& special, uniChar_t unicodeV
{
if (isDown) {
if (true == m_localShortcut[iii]->broadcastEvent) {
// send message at all the widget
// send message at all the widget (exepted this one)
SendMultiCast(m_localShortcut[iii]->generateEventId, m_localShortcut[iii]->eventData);
} else {
// send message direct to the current widget
OnReceiveMessage(this, m_localShortcut[iii]->generateEventId, m_localShortcut[iii]->eventData);
}
// send message direct to the current widget (in every case, really useful for some generic windows shortcut)
OnReceiveMessage(this, m_localShortcut[iii]->generateEventId, m_localShortcut[iii]->eventData);
} // no else
return true;
}