diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-11-24 14:22:46 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-11-24 14:22:46 +0200 |
commit | 22049830334de572ab703132aab353f2b20a3c15 (patch) | |
tree | 6833d108b8fe00e6f28ddd40a2d7cdbfd595a2bb | |
parent | 629840e9a80d47d7224dbb6d557af07f194ca099 (diff) |
MAINT-8017 Avatar walks in half-bent position , without disabling "away" status
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 7b4895b862..364de1d810 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -1405,11 +1405,6 @@ BOOL LLViewerWindow::handleTranslatedKeyDown(KEY key, MASK mask, BOOL repeated) // Let the voice chat code check for its PTT key. Note that this never affects event processing. LLVoiceClient::getInstance()->keyDown(key, mask); - if (gAwayTimer.getElapsedTimeF32() > LLAgent::MIN_AFK_TIME) - { - gAgent.clearAFK(); - } - // *NOTE: We want to interpret KEY_RETURN later when it arrives as // a Unicode char, not as a keydown. Otherwise when client frame // rate is really low, hitting return sends your chat text before @@ -1423,7 +1418,13 @@ BOOL LLViewerWindow::handleTranslatedKeyDown(KEY key, MASK mask, BOOL repeated) return FALSE; } - return gViewerKeyboard.handleKey(key, mask, repeated); + BOOL handled = gViewerKeyboard.handleKey(key, mask, repeated); + if (!handled || (gAwayTimer.getElapsedTimeF32() > LLAgent::MIN_AFK_TIME)) + { + gAgent.clearAFK(); + } + + return handled; } BOOL LLViewerWindow::handleTranslatedKeyUp(KEY key, MASK mask) |