mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-06 17:49:05 +02:00
Prevent VR quick_message bar.
Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
parent
ed3e629f19
commit
0a7b64d7be
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@
|
||||||
function keyPressEvent(event) {
|
function keyPressEvent(event) {
|
||||||
switch (JSON.stringify(event.key)) {
|
switch (JSON.stringify(event.key)) {
|
||||||
case "16777220": // Enter key
|
case "16777220": // Enter key
|
||||||
|
if (HMD.active) return; // Don't allow in VR
|
||||||
|
|
||||||
quick_message.sendToQml({
|
quick_message.sendToQml({
|
||||||
type: "change_visibility",
|
type: "change_visibility",
|
||||||
value: true,
|
value: true,
|
||||||
|
|
Loading…
Reference in a new issue