implement CTRL+Z for undo() and CTRL+Shift+Z for redo()
This commit is contained in:
@@ -315,6 +315,8 @@ kEventResult NodeCanvas::handle_event(Event* e)
|
||||
// m_canvas->m_alpha_lock = false;
|
||||
if (ke->m_key == kKey::KeyTab)
|
||||
App::I.toggle_ui();
|
||||
if (ke->m_key == kKey::KeyZ && App::I.keys[(int)kKey::KeyCtrl])
|
||||
App::I.keys[(int)kKey::KeyShift] ? ActionManager::redo() : ActionManager::undo();
|
||||
break;
|
||||
case kEventType::GestureStart:
|
||||
mouse_capture();
|
||||
|
||||
Reference in New Issue
Block a user