mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
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:
committed by
Keavon Chambers
parent
5d3a496456
commit
3353974a0b
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user