Fix the bug in which right click and then delete key would no longer work to delete objects

Navigation handling without a currently selected menu entry now only happens if key is up or down arrow
(mind the space changes)
This commit is contained in:
Inusaito Sayori
2013-10-29 06:25:22 -04:00
parent bdcc4189be
commit ec4679c2a8

View File

@@ -4630,10 +4630,13 @@ BOOL LLMenuHolderGL::handleKey(KEY key, MASK mask, BOOL called_from_parent)
}
else
{
//highlight first enabled one
if(pMenu->highlightNextItem(NULL))
if (key == KEY_UP || key == KEY_DOWN) // Singu Note: Only highlight if the user actually meant to navigate through the menu
{
handled = true;
//highlight first enabled one
if (pMenu->highlightNextItem(NULL))
{
handled = true;
}
}
}
}