aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/lllineeditor.cpp')
-rw-r--r--linden/indra/llui/lllineeditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp
index 9671065..78fe29c 100644
--- a/linden/indra/llui/lllineeditor.cpp
+++ b/linden/indra/llui/lllineeditor.cpp
@@ -1642,6 +1642,9 @@ void LLLineEditor::draw()
1642 { 1642 {
1643 mLastIMEPosition.mX = ime_pos.mX; 1643 mLastIMEPosition.mX = ime_pos.mX;
1644 mLastIMEPosition.mY = ime_pos.mY; 1644 mLastIMEPosition.mY = ime_pos.mY;
1645
1646 ime_pos.mX = (S32) (ime_pos.mX * LLUI::sGLScaleFactor.mV[VX]);
1647 ime_pos.mY = (S32) (ime_pos.mY * LLUI::sGLScaleFactor.mV[VY]);
1645 getWindow()->setLanguageTextInput( ime_pos ); 1648 getWindow()->setLanguageTextInput( ime_pos );
1646 } 1649 }
1647 } 1650 }
@@ -2219,6 +2222,11 @@ LLView* LLLineEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory
2219 { 2222 {
2220 line_editor->setHandleEditKeysDirectly(handle_edit_keys_directly); 2223 line_editor->setHandleEditKeysDirectly(handle_edit_keys_directly);
2221 } 2224 }
2225 BOOL commit_on_focus_lost = TRUE;
2226 if (node->getAttributeBOOL("commit_on_focus_lost", commit_on_focus_lost))
2227 {
2228 line_editor->setCommitOnFocusLost(commit_on_focus_lost);
2229 }
2222 2230
2223 line_editor->setColorParameters(node); 2231 line_editor->setColorParameters(node);
2224 2232