Implement nudging selected layers with arrow keys (#245)

* Implement nudging selected layers with arrow keys

* Normalize diagonal nudges and add constants

* Replace sqrt(2.0) with a constant

* Remove normalization of diagonal movement
This commit is contained in:
Henry Sloan
2021-07-11 22:22:26 -04:00
committed by Keavon Chambers
parent 5d3a496456
commit 3353974a0b
4 changed files with 47 additions and 1 deletions

View File

@@ -124,6 +124,10 @@ pub fn translate_key(name: &str) -> Key {
"alt" => KeyAlt,
"escape" => KeyEscape,
"tab" => KeyTab,
"arrowup" => KeyArrowUp,
"arrowdown" => KeyArrowDown,
"arrowleft" => KeyArrowLeft,
"arrowright" => KeyArrowRight,
_ => UnknownKey,
}
}