Disallow menu shortcuts when the menu is visible. Fixes unintended feature access when using OTG keyboards on Android.

This commit is contained in:
elasota
2020-11-03 19:08:53 -05:00
parent 43cfb7ea6b
commit 0d304e8a96

View File

@@ -658,6 +658,9 @@ namespace PortabilityLayer
bool MenuManagerImpl::FindMenuShortcut(uint16_t &menuID, uint16_t &itemID, uint8_t shortcutChar)
{
if (!m_menuBarVisible)
return false;
MenuHandle menuH = m_firstMenu;
while (menuH)
{