diff options
author | Monroe Linden <monroe@lindenlab.com> | 2009-10-27 17:51:24 -0700 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2009-10-27 17:51:24 -0700 |
commit | b2a64d204deeca17c1a73908cb8fb9e8837ecf71 (patch) | |
tree | fe5acf4c98caf6b3017b2a1c846ee00ff49743df /indra | |
parent | c114b6a7d903a62d80f73c321c942ed2bda82d90 (diff) |
Fake a key-up event after each key-down sent to a plugin.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewermedia.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 41a676dc53..02fda191be 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -1312,6 +1312,8 @@ bool LLViewerMediaImpl::handleKeyHere(KEY key, MASK mask) if(!result) { result = mMediaSource->keyEvent(LLPluginClassMedia::KEY_EVENT_DOWN ,key, mask); + // Since the viewer internal event dispatching doesn't give us key-up events, simulate one here. + (void)mMediaSource->keyEvent(LLPluginClassMedia::KEY_EVENT_UP ,key, mask); } } |