diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-07-17 18:05:10 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-17 18:05:10 +0300 |
| commit | c37140dd89051317216bbf7a2cb08198c62535e0 (patch) | |
| tree | c1f42bc327fcb90b312b307692fee1f6ca763e0b /indra/llui/lllineeditor.cpp | |
| parent | 4c89ad558688f6dfa8f7216ad7613ed75823b069 (diff) | |
SL-19995 FIXED The context menu is not fully displayed for the navigation bar
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
| -rw-r--r-- | indra/llui/lllineeditor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index 940cf398c0..60dbfd68c6 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -164,7 +164,8 @@ LLLineEditor::LLLineEditor(const LLLineEditor::Params& p) mHighlightColor(p.highlight_color()), mPreeditBgColor(p.preedit_bg_color()), mGLFont(p.font), - mContextMenuHandle() + mContextMenuHandle(), + mShowContextMenu(true) { llassert( mMaxLengthBytes > 0 ); @@ -825,7 +826,7 @@ BOOL LLLineEditor::handleMiddleMouseDown(S32 x, S32 y, MASK mask) BOOL LLLineEditor::handleRightMouseDown(S32 x, S32 y, MASK mask) { setFocus(TRUE); - if (!LLUICtrl::handleRightMouseDown(x, y, mask)) + if (!LLUICtrl::handleRightMouseDown(x, y, mask) && getShowContextMenu()) { showContextMenu(x, y); } |
