summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallery.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-03 02:10:30 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-06-03 02:10:30 +0300
commit11457017a1d0f9eeb365186dc09a6a68a895c623 (patch)
tree6fe020ab80d20d057b543a4adca4bc978d45e34e /indra/newview/llinventorygallery.cpp
parentfb248ad2bc106bad827e624b4bb6b99a3f97d266 (diff)
SL-19815 Return key should open items in gallery view
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r--indra/newview/llinventorygallery.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index 80bfbb8d23..a6cadea712 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -877,6 +877,14 @@ BOOL LLInventoryGallery::handleKeyHere(KEY key, MASK mask)
setRootFolder(mSelectedItemID);
handled = TRUE;
}
+ else
+ {
+ LLViewerInventoryItem* item = gInventory.getItem(mSelectedItemID);
+ if (item)
+ {
+ LLInvFVBridgeAction::doAction(item->getType(), mSelectedItemID, &gInventory);
+ }
+ }
}
break;
case KEY_DELETE: