diff options
author | Denis Serdjuk <dserduk@productengine.com> | 2009-12-26 12:56:38 +0200 |
---|---|---|
committer | Denis Serdjuk <dserduk@productengine.com> | 2009-12-26 12:56:38 +0200 |
commit | 18e3fd3e0a765309039571d9dc12a68590cfbf75 (patch) | |
tree | b9329b7dff372b095c5aa05bdbb9b65a88065d74 /indra | |
parent | 5e2d18037d17078c3e0575c1ef72307acda7f9b1 (diff) |
fixed low bug EXT-3625 Unable to submit Friendship offer message by Enter key
--HG--
branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lltoastalertpanel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lltoastalertpanel.cpp b/indra/newview/lltoastalertpanel.cpp index c48301fa1e..8f296b3794 100644 --- a/indra/newview/lltoastalertpanel.cpp +++ b/indra/newview/lltoastalertpanel.cpp @@ -385,6 +385,12 @@ BOOL LLToastAlertPanel::handleKeyHere(KEY key, MASK mask ) { if( KEY_RETURN == key && mask == MASK_NONE ) { + LLButton* defaultBtn = getDefaultButton(); + if(defaultBtn && defaultBtn->getVisible() && defaultBtn->getEnabled()) + { + // If we have a default button, click it when return is pressed + defaultBtn->onCommit(); + } return TRUE; } else if (KEY_RIGHT == key) |