mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Fix TooltipManager: we cannot handle filtered message with the normal Widget::onProcessMessage() handler.
If we use the Widget::onProcessMessage() handler for filtered messages, key-pressed messages would be handled by the Manager before the focused widget.
This commit is contained in:
parent
42bb192a24
commit
4afe591c54
@ -66,7 +66,7 @@ bool TooltipManager::onProcessMessage(Message* msg)
|
||||
m_timer->start();
|
||||
}
|
||||
}
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
|
||||
case JM_KEYPRESSED:
|
||||
@ -79,8 +79,10 @@ bool TooltipManager::onProcessMessage(Message* msg)
|
||||
|
||||
if (m_timer)
|
||||
m_timer->stop();
|
||||
break;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return Widget::onProcessMessage(msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user