Spaces:
Runtime error
Runtime error
change 'add person' key to Ctrl+E
Browse files- static/poseEditor.js +2 -3
static/poseEditor.js
CHANGED
@@ -523,10 +523,9 @@ document.addEventListener("keydown", (event) => {
|
|
523 |
});
|
524 |
document.addEventListener("keyup", (event) => {
|
525 |
keyDownFlags[event.code] = false;
|
526 |
-
if (event.ctrlKey && event.code == "
|
527 |
addPerson();
|
528 |
-
}
|
529 |
-
if (event.ctrlKey && event.code == "KeyZ") {
|
530 |
if (event.shiftKey) {
|
531 |
redo();
|
532 |
} else {
|
|
|
523 |
});
|
524 |
document.addEventListener("keyup", (event) => {
|
525 |
keyDownFlags[event.code] = false;
|
526 |
+
if (event.ctrlKey && event.code == "KeyE") {
|
527 |
addPerson();
|
528 |
+
} else if (event.ctrlKey && event.code == "KeyZ") {
|
|
|
529 |
if (event.shiftKey) {
|
530 |
redo();
|
531 |
} else {
|