Add space key & drag to pan the canvas (#364)

This commit is contained in:
0HyperCube 2021-08-30 11:07:43 +01:00 committed by Keavon Chambers
parent 6b274b3f1c
commit 4f871919f5
4 changed files with 13 additions and 4 deletions

View file

@ -137,6 +137,7 @@ pub fn translate_key(name: &str) -> Key {
"shift" => KeyShift,
// When using linux + chrome + the neo keyboard layout, the shift key is recognized as caps
"capslock" => KeyShift,
" " => KeySpace,
"control" => KeyControl,
"delete" => KeyDelete,
"backspace" => KeyBackspace,