mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-15 19:52:05 +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();
|
m_timer->start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
case JM_KEYPRESSED:
|
case JM_KEYPRESSED:
|
||||||
@ -79,8 +79,10 @@ bool TooltipManager::onProcessMessage(Message* msg)
|
|||||||
|
|
||||||
if (m_timer)
|
if (m_timer)
|
||||||
m_timer->stop();
|
m_timer->stop();
|
||||||
break;
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Widget::onProcessMessage(msg);
|
return Widget::onProcessMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user