Fix incorrect control-key map for hotkeys.

Fixes: lp:1832431
* https://bugs.launchpad.net/kicad/+bug/1832431
This commit is contained in:
Jeff Young 2019-06-12 09:57:39 +01:00
parent 06d2170501
commit 2d29f76c49
1 changed files with 3 additions and 3 deletions

View File

@ -600,13 +600,13 @@ long WIDGET_HOTKEY_LIST::MapKeypressToKeycode( const wxKeyEvent& aEvent )
bool keyIsLetter = key >= 'A' && key <= 'Z';
if( aEvent.ShiftDown() && ( keyIsLetter || key > 256 ) )
key |= GR_KB_SHIFT;
key |= MD_SHIFT;
if( aEvent.ControlDown() )
key |= GR_KB_CTRL;
key |= MD_CTRL;
if( aEvent.AltDown() )
key |= GR_KB_ALT;
key |= MD_ALT;
return key;
}