FIRE-15334: Pressing <Return> in chat bar when text is selected can result in text being deleted before send

Tue, 06 Jan 2015 10:04:52 +0100

author
Ansariel
date
Tue, 06 Jan 2015 10:04:52 +0100
changeset 43100
09d07fa095d5
parent 43099
9ecea804a06d
child 43101
c237bb7b935c

FIRE-15334: Pressing <Return> in chat bar when text is selected can result in text being deleted before send

indra/llui/llchatentry.cpp file | annotate | diff | revisions
     1.1 --- a/indra/llui/llchatentry.cpp	Mon Jan 05 15:14:02 2015 +0100
     1.2 +++ b/indra/llui/llchatentry.cpp	Tue Jan 06 10:04:52 2015 +0100
     1.3 @@ -190,8 +190,11 @@
     1.4      if (key == KEY_RETURN)
     1.5      {
     1.6          endOfDoc();
     1.7 -        startSelection();
     1.8 -        endSelection();
     1.9 +		// <FS:Ansariel> FIRE-15334: Properly deselect
    1.10 +        //startSelection();
    1.11 +        //endSelection();
    1.12 +		deselect();
    1.13 +		// </FS:Ansariel>
    1.14      }
    1.15  
    1.16  	LLTextEditor::handleSpecialKey(key, mask);

mercurial