mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:28:09 +02:00
Merge pull request #672 from overte-org/fix/chat_bar_vr
Prevent the chat bar from popping up when VR headset is on
This commit is contained in:
commit
720c0269e6
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) {
|
if (event.key === H_KEY && !event.isAutoRepeat && event.isControl) {
|
||||||
toggleMainChatWindow()
|
toggleMainChatWindow()
|
||||||
}
|
}
|
||||||
if (event.key === ENTER_KEY && !event.isAutoRepeat && !visible) {
|
if (event.key === ENTER_KEY && !event.isAutoRepeat && !visible && !HMD.active) {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
if (event.key === ESC_KEY && !event.isAutoRepeat && visible) {
|
if (event.key === ESC_KEY && !event.isAutoRepeat && visible) {
|
||||||
|
|
Loading…
Reference in a new issue