diff options
author | Howard Stearns <aech@lindenlab.com> | 2022-05-12 17:09:30 +0000 |
---|---|---|
committer | Howard Stearns <aech@lindenlab.com> | 2022-05-12 17:09:30 +0000 |
commit | 44f70be1e447664ec3ee050e85a8e14965fff4e7 (patch) | |
tree | c1a5c851a06dd77a27cbc135e4625701e743902e /indra/llwindow/llkeyboard.cpp | |
parent | 4cfcbca748e825b4904e7f136fa625b1a0f79dfb (diff) | |
parent | 915de3eb556c22216fd3c76e2de4a2ab1953dbe0 (diff) |
Merged DRTVWR-544-maint into SL-12238
Diffstat (limited to 'indra/llwindow/llkeyboard.cpp')
-rw-r--r-- | indra/llwindow/llkeyboard.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llwindow/llkeyboard.cpp b/indra/llwindow/llkeyboard.cpp index 5404ac50e5..e65cc7563e 100644 --- a/indra/llwindow/llkeyboard.cpp +++ b/indra/llwindow/llkeyboard.cpp @@ -148,6 +148,22 @@ void LLKeyboard::addKeyName(KEY key, const std::string& name) sNamesToKeys[nameuc] = key; } +void LLKeyboard::resetKeyDownAndHandle() +{ + MASK mask = currentMask(FALSE); + for (S32 i = 0; i < KEY_COUNT; i++) + { + if (mKeyLevel[i]) + { + mKeyDown[i] = FALSE; + mKeyLevel[i] = FALSE; + mKeyUp[i] = TRUE; + mCurTranslatedKey = (KEY)i; + mCallbacks->handleTranslatedKeyUp(i, mask); + } + } +} + // BUG this has to be called when an OS dialog is shown, otherwise modifier key state // is wrong because the keyup event is never received by the main window. JC void LLKeyboard::resetKeys() |