summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorYchebotarev ProductEngine <ychebotarev@productengine.com>2010-03-03 11:49:27 +0200
committerYchebotarev ProductEngine <ychebotarev@productengine.com>2010-03-03 11:49:27 +0200
commitc624848d2537b302c83fe5a6aade7ed5b9e38f90 (patch)
tree6f571bde8da18c0e80bc5f9c9cf6eb542b8db2ba /indra/llui
parent0f04222acc13802d1b16dff49e17dc52c1cfae2a (diff)
fix for low EXT-5327 Add an ability to open accordions by "Enter" button, like folders' behavior
--HG-- branch : product-engine
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llaccordionctrltab.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llui/llaccordionctrltab.cpp b/indra/llui/llaccordionctrltab.cpp
index daa9e08f14..b90ed25058 100644
--- a/indra/llui/llaccordionctrltab.cpp
+++ b/indra/llui/llaccordionctrltab.cpp
@@ -562,6 +562,12 @@ BOOL LLAccordionCtrlTab::handleKey(KEY key, MASK mask, BOOL called_from_parent)
if( !header->hasFocus() )
return LLUICtrl::handleKey(key, mask, called_from_parent);
+ if ( (key == KEY_RETURN )&& mask == MASK_NONE)
+ {
+ changeOpenClose(getDisplayChildren());
+ return TRUE;
+ }
+
if ( (key == KEY_ADD || key == KEY_RIGHT)&& mask == MASK_NONE)
{
if(getDisplayChildren() == false)