diff options
author | Oz Linden <oz@lindenlab.com> | 2013-10-15 17:47:37 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-10-15 17:47:37 -0400 |
commit | 9c313aea13c70db145d3f2ba840fdc34ed8c8adf (patch) | |
tree | 72b76053aac0fedf411145b0427b2239971034b1 /indra/newview/llwindowlistener.cpp | |
parent | 1e32b9dd33fb9e2f0d9a7935a3696b423a191354 (diff) | |
parent | 8dc273b942ca3bae7469dcbaf7bab171b889eea1 (diff) |
merge changes for DRTVWR-336
Diffstat (limited to 'indra/newview/llwindowlistener.cpp')
-rwxr-xr-x | indra/newview/llwindowlistener.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llwindowlistener.cpp b/indra/newview/llwindowlistener.cpp index 28f959eb71..a8e06511d7 100755 --- a/indra/newview/llwindowlistener.cpp +++ b/indra/newview/llwindowlistener.cpp @@ -265,7 +265,9 @@ void LLWindowListener::getPaths(LLSD const & request) void LLWindowListener::keyDown(LLSD const & evt) { Response response(LLSD(), evt); - + KEY key = getKEY(evt); + MASK mask = getMask(evt); + if (evt.has("path")) { std::string path(evt["path"]); @@ -280,8 +282,6 @@ void LLWindowListener::keyDown(LLSD const & evt) response.setResponse(target_view->getInfo()); gFocusMgr.setKeyboardFocus(target_view); - KEY key = getKEY(evt); - MASK mask = getMask(evt); gViewerKeyboard.handleKey(key, mask, false); if(key < 0x80) mWindow->handleUnicodeChar(key, mask); } @@ -294,7 +294,8 @@ void LLWindowListener::keyDown(LLSD const & evt) } else { - mKbGetter()->handleTranslatedKeyDown(getKEY(evt), getMask(evt)); + gViewerKeyboard.handleKey(key, mask, false); + if(key < 0x80) mWindow->handleUnicodeChar(key, mask); } } |