diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index 248f3ed649ee79296de86ae47f9a213864836d06..2a71735a5372d384279e350c956c91d8cd964c6e 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -1045,6 +1045,7 @@ BOOL LLInventoryGallery::handleKeyHere(KEY key, MASK mask)
                     }
                 }
             }
+            handled = TRUE;
             break;
         case KEY_DELETE:
 #if LL_DARWIN
@@ -1056,6 +1057,7 @@ BOOL LLInventoryGallery::handleKeyHere(KEY key, MASK mask)
             {
                 deleteSelection();
             }
+            handled = TRUE;
             break;
 
         case KEY_F2: