mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Disallow menu shortcuts when the menu is visible. Fixes unintended feature access when using OTG keyboards on Android.
This commit is contained in:
@@ -658,6 +658,9 @@ namespace PortabilityLayer
|
|||||||
|
|
||||||
bool MenuManagerImpl::FindMenuShortcut(uint16_t &menuID, uint16_t &itemID, uint8_t shortcutChar)
|
bool MenuManagerImpl::FindMenuShortcut(uint16_t &menuID, uint16_t &itemID, uint8_t shortcutChar)
|
||||||
{
|
{
|
||||||
|
if (!m_menuBarVisible)
|
||||||
|
return false;
|
||||||
|
|
||||||
MenuHandle menuH = m_firstMenu;
|
MenuHandle menuH = m_firstMenu;
|
||||||
while (menuH)
|
while (menuH)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user