X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=9526f198b7c3e228b4f13e1834eab148d07c4fd9;hb=914d869445048466ef00954109a15286938521c6;hp=085dd9ff4c3c3fccf9a875a2e878de96ced3e0b5;hpb=fb04dd34fca520cfcac737fc1352a807331ea72d;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index 085dd9ff..9526f198 100644 --- a/src/events.c +++ b/src/events.c @@ -1910,6 +1910,13 @@ static void HandleKeysSpecial(Key key) { CopyClipboardToBrush(); } + else if (letter == 'z') // undo or redo last operation + { + if (GetKeyModState() & KMOD_Shift) + RedoLevelEditorOperation(); + else + UndoLevelEditorOperation(); + } } }