Commit 674146af authored by Christian Winter's avatar Christian Winter

bugfix. rotation by 90 degree now working again with ctrl+R and shift+R

parent f527a990
Pipeline #5053135 passed with stage
in 57 seconds
......@@ -518,9 +518,9 @@
case Key.R:
if (!this.selection.noSelection()) {
if (Input.isKeyDown(Key.Shift))
LineManipulator.rotateSelectionBy(this.selection, 90);
LineManipulator.rotateSelectionBy(90);
else if (Input.isKeyDown(Key.Control))
LineManipulator.rotateSelectionBy(this.selection, -90);
LineManipulator.rotateSelectionBy(-90);
else if (Input.isKeyDown(Key.Alt))
LineManipulator.resetRotation();
else
......
......@@ -54,6 +54,7 @@ class Input {
if (
e.keyCode == Key.D && this.isKeyDown(Key.Control)
|| e.keyCode == Key.Alt
|| (e.keyCode == Key.R && Input.isKeyDown(Key.Control))
)
e.preventDefault();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment