implement CTRL+Z for undo() and CTRL+Shift+Z for redo()
This commit is contained in:
@@ -83,6 +83,9 @@ kEventResult Node::on_event(Event* e)
|
||||
skip_children |= (e->m_cat == kEventCategory::MouseEvent || e->m_cat == kEventCategory::GestureEvent) &&
|
||||
(m_mouse_captured) && (root()->current_mouse_capture == this) && m_capture_children; // <-- THIS IS WRONG "!m_capture_children" is correct, but it breaks everything if changed
|
||||
|
||||
if (!m_display)
|
||||
return kEventResult::Available;
|
||||
|
||||
if (!skip_children)
|
||||
{
|
||||
for (auto it = m_children.rbegin(); it != m_children.rend(); ++it)
|
||||
|
||||
Reference in New Issue
Block a user