Zoom hotkeys fix for Windows (GAL).

This commit is contained in:
Maciej Suminski 2015-06-16 14:22:12 +02:00
parent b562cfb8bb
commit 5c6ecb0491
1 changed files with 4 additions and 2 deletions

View File

@ -106,9 +106,12 @@ TOOL_ACTION* ACTION_MANAGER::FindAction( const std::string& aActionName ) const
bool ACTION_MANAGER::RunHotKey( int aHotKey ) const
{
int key = std::toupper( aHotKey & ~MD_MODIFIER_MASK );
int key = aHotKey & ~MD_MODIFIER_MASK;
int mod = aHotKey & MD_MODIFIER_MASK;
if( key >= 'a' && key <= 'z')
key = std::toupper(key);
HOTKEY_LIST::const_iterator it = m_actionHotKeys.find( key | mod );
// If no luck, try without Shift, to handle keys that require it
@ -139,7 +142,6 @@ bool ACTION_MANAGER::RunHotKey( int aHotKey ) const
// context actions to run
assert( global == NULL ); // there should be only one global action per hot key
global = action;
continue;
}