CHUI-810 : Merged Marine Kelley's patch on selected text and use of return key in chat
parent
9fb0084166
commit
e5aa9088f0
|
|
@ -744,6 +744,7 @@ Marc Claridge
|
|||
Marc2 Sands
|
||||
Marianne McCann
|
||||
Marine Kelley
|
||||
CHUIBUG-134
|
||||
STORM-281
|
||||
MartinRJ Fayray
|
||||
STORM-1844
|
||||
|
|
|
|||
|
|
@ -169,6 +169,15 @@ BOOL LLChatEntry::handleSpecialKey(const KEY key, const MASK mask)
|
|||
{
|
||||
BOOL handled = FALSE;
|
||||
|
||||
// In the case of a chat entry, pressing RETURN when something is selected
|
||||
// should NOT erase the selection (unlike a notecard, for example)
|
||||
if (key == KEY_RETURN)
|
||||
{
|
||||
endOfDoc();
|
||||
startSelection();
|
||||
endSelection();
|
||||
}
|
||||
|
||||
LLTextEditor::handleSpecialKey(key, mask);
|
||||
|
||||
switch(key)
|
||||
|
|
|
|||
Loading…
Reference in New Issue