diff options
author | Rider Linden <rider@lindenlab.com> | 2015-10-27 15:17:12 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-10-27 15:17:12 -0700 |
commit | 9833a50260fb45d5f0033200ae756834c0cc9940 (patch) | |
tree | 7b1462d2c0802fb175746a8d05100bb8c102640f /indra/llui | |
parent | 8c74ed2a58f5443b931374489b04ba80fb11a590 (diff) |
MAINT-5754: For MoaP and MediaCtrls forward all events including KEYUP and KEYDOWN to the CEF plugin.
Diffstat (limited to 'indra/llui')
-rwxr-xr-x | indra/llui/llfocusmgr.cpp | 12 | ||||
-rwxr-xr-x | indra/llui/llfocusmgr.h | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/indra/llui/llfocusmgr.cpp b/indra/llui/llfocusmgr.cpp index fb811452be..1a51b96fdf 100755 --- a/indra/llui/llfocusmgr.cpp +++ b/indra/llui/llfocusmgr.cpp @@ -58,6 +58,18 @@ BOOL LLFocusableElement::handleUnicodeChar(llwchar uni_char, BOOL called_from_pa return FALSE; } +// virtual +bool LLFocusableElement::wantsKeyUpKeyDown() const +{ + return false; +} + +//virtual +bool LLFocusableElement::wantsReturnKey() const +{ + return false; +} + // virtual LLFocusableElement::~LLFocusableElement() { diff --git a/indra/llui/llfocusmgr.h b/indra/llui/llfocusmgr.h index 950ac55325..0e3d7d8e59 100755 --- a/indra/llui/llfocusmgr.h +++ b/indra/llui/llfocusmgr.h @@ -60,6 +60,14 @@ public: virtual BOOL handleKeyUp(KEY key, MASK mask, BOOL called_from_parent); virtual BOOL handleUnicodeChar(llwchar uni_char, BOOL called_from_parent); + /** + * If true this LLFocusableElement wants to receive KEYUP and KEYDOWN messages + * even for normal character strokes. + * Default implementation returns false. + */ + virtual bool wantsKeyUpKeyDown() const; + virtual bool wantsReturnKey() const; + virtual void onTopLost(); // called when registered as top ctrl and user clicks elsewhere protected: virtual void onFocusReceived(); |