diff options
author | Eli Linden <eli@lindenlab.com> | 2010-01-26 14:33:28 -0800 |
---|---|---|
committer | Eli Linden <eli@lindenlab.com> | 2010-01-26 14:33:28 -0800 |
commit | a87cbadf16cb8a32ea78fb605403472ee866bccf (patch) | |
tree | 07b4eb3d31491ca30d02952442ce53b1cd426c55 /indra/llui/lltexteditor.cpp | |
parent | 3f7ed7ef1de1012e3bea719e8042a256deb10ac3 (diff) | |
parent | fee564c26e1018787cf70b95fc677c1da447118c (diff) |
Merge
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rw-r--r-- | indra/llui/lltexteditor.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index f2c3879a6c..06ba0d80e9 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -2040,6 +2040,20 @@ void LLTextEditor::showContextMenu(S32 x, S32 y) LLMenuHolderGL::child_registry_t::instance()); } + // Route menu to this class + // previously this was done in ::handleRightMoseDown: + //if(hasTabStop()) + // setFocus(TRUE) - why? weird... + // and then inside setFocus + // .... + // gEditMenuHandler = this; + // .... + // but this didn't work in all cases and just weird... + //why not here? + // (all this was done for EXT-4443) + + gEditMenuHandler = this; + S32 screen_x, screen_y; localPointToScreen(x, y, &screen_x, &screen_y); mContextMenu->show(screen_x, screen_y); |