Zoom hotkeys fix for Windows (GAL).
This commit is contained in:
parent
b562cfb8bb
commit
5c6ecb0491
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue