Merge pull request #11977 from ctrlaltdavid/21643

Enable user connection with "x" key when capslock is on
This commit is contained in:
Brad Hefta-Gaub 2017-12-15 15:22:00 -08:00 committed by GitHub
commit 95bfacb850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -892,12 +892,14 @@
}
function keyPressEvent(event) {
if ((event.text === "x") && !event.isAutoRepeat && !event.isShifted && !event.isMeta && !event.isControl && !event.isAlt) {
if ((event.text.toUpperCase() === "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 && !event.isShifted && !event.isMeta && !event.isControl && !event.isAlt) {
if ((event.text.toUpperCase() === "X") && !event.isAutoRepeat && !event.isShifted && !event.isMeta && !event.isControl
&& !event.isAlt) {
updateTriggers(0.0, true, Controller.Standard.RightHand);
}
}