Skip to content

Commit

Permalink
Undo will also work with right control
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Dec 1, 2023
1 parent f775bc0 commit 2f3dab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/Map/MapManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public void Update(GameTime gameTime, bool isActive, bool processMouse, bool pro
break;
}
}
if(keyState.IsKeyDown(Keys.LeftControl) && keyState.IsKeyDown(Keys.Z) && _prevKeyState.IsKeyUp(Keys.Z))
if((keyState.IsKeyDown(Keys.LeftControl) || keyState.IsKeyDown(Keys.RightControl)) && keyState.IsKeyDown(Keys.Z) && _prevKeyState.IsKeyUp(Keys.Z))
{
Client.Undo();
}
Expand Down

0 comments on commit 2f3dab3

Please sign in to comment.