From 2d29f76c49bb1d2c5747b62944ebaae12cc1a2df Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 12 Jun 2019 09:57:39 +0100 Subject: [PATCH] Fix incorrect control-key map for hotkeys. Fixes: lp:1832431 * https://bugs.launchpad.net/kicad/+bug/1832431 --- common/widgets/widget_hotkey_list.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/widgets/widget_hotkey_list.cpp b/common/widgets/widget_hotkey_list.cpp index b233cd4435..7216a2ab90 100644 --- a/common/widgets/widget_hotkey_list.cpp +++ b/common/widgets/widget_hotkey_list.cpp @@ -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; }