aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llui/lllineeditor.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llui/lllineeditor.cpp')
-rw-r--r--linden/indra/llui/lllineeditor.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp
index ec156ba..a2cd9af 100644
--- a/linden/indra/llui/lllineeditor.cpp
+++ b/linden/indra/llui/lllineeditor.cpp
@@ -711,11 +711,11 @@ S32 LLLineEditor::prevWordPos(S32 cursorPos) const
711S32 LLLineEditor::nextWordPos(S32 cursorPos) const 711S32 LLLineEditor::nextWordPos(S32 cursorPos) const
712{ 712{
713 const LLWString& wtext = mText.getWString(); 713 const LLWString& wtext = mText.getWString();
714 while( (cursorPos < getLength()) && isPartOfWord( wtext[cursorPos+1] ) ) 714 while( (cursorPos < getLength()) && isPartOfWord( wtext[cursorPos] ) )
715 { 715 {
716 cursorPos++; 716 cursorPos++;
717 } 717 }
718 while( (cursorPos < getLength()) && (wtext[cursorPos+1] == ' ') ) 718 while( (cursorPos < getLength()) && (wtext[cursorPos] == ' ') )
719 { 719 {
720 cursorPos++; 720 cursorPos++;
721 } 721 }
@@ -1035,7 +1035,8 @@ BOOL LLLineEditor::handleSpecialKey(KEY key, MASK mask)
1035 break; 1035 break;
1036 1036
1037 case KEY_LEFT: 1037 case KEY_LEFT:
1038 if (!mIgnoreArrowKeys) 1038 if (!mIgnoreArrowKeys
1039 && mask != MASK_ALT)
1039 { 1040 {
1040 if( hasSelection() ) 1041 if( hasSelection() )
1041 { 1042 {
@@ -1060,7 +1061,8 @@ BOOL LLLineEditor::handleSpecialKey(KEY key, MASK mask)
1060 break; 1061 break;
1061 1062
1062 case KEY_RIGHT: 1063 case KEY_RIGHT:
1063 if (!mIgnoreArrowKeys) 1064 if (!mIgnoreArrowKeys
1065 && mask != MASK_ALT)
1064 { 1066 {
1065 if (hasSelection()) 1067 if (hasSelection())
1066 { 1068 {