Exit inspect mode when press Esc or move avatar

This commit is contained in:
David Rowe 2020-01-06 11:10:10 +13:00
parent ac34d49c1b
commit 81e1dd4d6a

View file

@ -222,6 +222,12 @@ function keyPressEvent(event) {
changed = true;
}
if (mode !== noMode && !alt && !control && !shift && /^ESC|LEFT|RIGHT|UP|DOWN|[wasdWASD]$/.test(event.text)) {
mode = noMode;
restoreCameraState();
changed = true;
}
if (changed) {
handleModes();
}