mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 19:12:28 +02:00
Prevent the chat bar from popping up when VR headset is on
This commit is contained in:
parent
fde4e1f26f
commit
77e1e174a6
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ function keyPressEvent(event) {
|
|||
if (event.key === H_KEY && !event.isAutoRepeat && event.isControl) {
|
||||
toggleMainChatWindow()
|
||||
}
|
||||
if (event.key === ENTER_KEY && !event.isAutoRepeat && !visible) {
|
||||
if (event.key === ENTER_KEY && !event.isAutoRepeat && !visible && !HMD.active) {
|
||||
setVisible(true);
|
||||
}
|
||||
if (event.key === ESC_KEY && !event.isAutoRepeat && visible) {
|
||||
|
|
Loading…
Reference in a new issue