mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 00:20:45 +02:00
Exit inspect mode when press Esc or move avatar
This commit is contained in:
parent
ac34d49c1b
commit
81e1dd4d6a
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue