implement CTRL+Z for undo() and CTRL+Shift+Z for redo()

This commit is contained in:
2018-07-28 19:28:26 +02:00
parent 4a05bda62f
commit a66af9abb8
4 changed files with 14 additions and 6 deletions

View File

@@ -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)