Fix stuck in pause error with browsers

This commit is contained in:
kunalgosar 2017-02-10 18:13:09 -08:00
parent a8f223518c
commit 9c537726e5
3 changed files with 5 additions and 5 deletions

View file

@ -296,6 +296,10 @@ Fadable {
// fall through
default:
if (MyAvatar.isAway) {
// If stuck in a window and a key is pressed this should exit paused mode
MyAvatar.isAway = false;
}
// Consume unmodified keyboard entries while the window is focused, to prevent them
// from propagating to the application
if (event.modifiers === Qt.NoModifier) {

View file

@ -2369,10 +2369,6 @@ void MyAvatar::setAway(bool value) {
}
}
bool MyAvatar::getIsAway() {
return _isAway;
}
// The resulting matrix is used to render the hand controllers, even if the camera is decoupled from the avatar.
// Specificly, if we are rendering using a third person camera. We would like to render the hand controllers in front of the camera,
// not in front of the avatar.

View file

@ -523,8 +523,8 @@ private:
float getEnergy();
void setEnergy(float value);
bool didTeleport();
bool getIsAway() const { return _isAway; }
void setAway(bool value);
bool getIsAway();
};
QScriptValue audioListenModeToScriptValue(QScriptEngine* engine, const AudioListenerMode& audioListenerMode);