Add space key for transform reset (#294)

Co-authored-by: Florian Köhler <power-unsealed>
This commit is contained in:
Florian Köhler 2023-03-15 16:18:16 +01:00 committed by GitHub
parent f3d45fc01d
commit c503973739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,6 +139,9 @@ fn run(
* transform;
}
}
Some(VirtualKeyCode::Space) => {
transform = Affine::IDENTITY;
}
Some(VirtualKeyCode::Escape) => {
*control_flow = ControlFlow::Exit;
}