From 0edcdde74680bbfd3c918c521437618195964c06 Mon Sep 17 00:00:00 2001 From: David Kelly Date: Thu, 23 Mar 2017 10:40:34 -0700 Subject: [PATCH] better key mapping --- scripts/system/makeUserConnection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/makeUserConnection.js b/scripts/system/makeUserConnection.js index e750c7179f..0b73beaca5 100644 --- a/scripts/system/makeUserConnection.js +++ b/scripts/system/makeUserConnection.js @@ -688,12 +688,12 @@ function makeGripHandler(hand, animate) { } function keyPressEvent(event) { - if ((event.text === "x") && !event.isAutoRepeat) { + if ((event.text === "x") && !event.isAutoRepeat && !event.isShifted && !event.isMeta && !event.isControl && !event.isAlt) { updateTriggers(1.0, true, Controller.Standard.RightHand); } } function keyReleaseEvent(event) { - if ((event.text === "x") && !event.isAutoRepeat) { + if ((event.text === "x") && !event.isAutoRepeat && !event.isShifted && !event.isMeta && !event.isControl && !event.isAlt) { updateTriggers(0.0, true, Controller.Standard.RightHand); } }