Add a few more gestures to the hotkeys list.

Fixes: lp:1778437
* https://bugs.launchpad.net/kicad/+bug/1778437
This commit is contained in:
Jeff Young 2019-06-13 20:38:14 +01:00
parent 36f70704eb
commit 21ac28a1ec
3 changed files with 20 additions and 13 deletions

View File

@ -39,10 +39,15 @@ public:
}; };
static GESTURE_PSEUDO_ACTION g_gesturePseudoActions[] = { static GESTURE_PSEUDO_ACTION g_gesturePseudoActions[] = {
GESTURE_PSEUDO_ACTION( _( "Highlight Net" ), MD_CTRL + PSEUDO_WXK_LMB ), GESTURE_PSEUDO_ACTION( _( "Highlight Net" ), MD_CTRL + PSEUDO_WXK_LMB ),
GESTURE_PSEUDO_ACTION( _( "Clear Net Highlighting" ), MD_CTRL + PSEUDO_WXK_LMB ), GESTURE_PSEUDO_ACTION( _( "Clear Net Highlighting" ), MD_CTRL + PSEUDO_WXK_LMB ),
GESTURE_PSEUDO_ACTION( _( "Pan Left/Right" ), MD_CTRL + PSEUDO_WXK_WHEEL ), GESTURE_PSEUDO_ACTION( _( "Pan Left/Right" ), MD_CTRL + PSEUDO_WXK_WHEEL ),
GESTURE_PSEUDO_ACTION( _( "Pan Up/Down" ), MD_SHIFT + PSEUDO_WXK_WHEEL ), GESTURE_PSEUDO_ACTION( _( "Pan Up/Down" ), MD_SHIFT + PSEUDO_WXK_WHEEL ),
GESTURE_PSEUDO_ACTION( _( "Finish Drawing" ), PSEUDO_WXK_DBLCLICK ),
GESTURE_PSEUDO_ACTION( _( "Add to Selection" ), MD_SHIFT + PSEUDO_WXK_LMB ),
GESTURE_PSEUDO_ACTION( _( "Remove from Selection" ), MD_CTRL + PSEUDO_WXK_LMB ),
GESTURE_PSEUDO_ACTION( _( "Ignore Grid Snaps" ), MD_ALT ),
GESTURE_PSEUDO_ACTION( _( "Ignore Other Snaps" ), MD_SHIFT ),
}; };

View File

@ -96,12 +96,13 @@ static struct hotkey_name_descr hotkeyNameList[] =
{ wxT( "Space" ), WXK_SPACE }, { wxT( "Space" ), WXK_SPACE },
{ wxT( "<unassigned>" ), 0 }, { wxT( "" ), 0 },
{ wxT( "Left Button" ), PSEUDO_WXK_LMB }, { wxT( "Left Button" ), PSEUDO_WXK_LMB },
{ wxT( "Middle Button" ), PSEUDO_WXK_MMB }, { wxT( "Middle Button" ), PSEUDO_WXK_MMB },
{ wxT( "Right Button" ), PSEUDO_WXK_RMB }, { wxT( "Right Button" ), PSEUDO_WXK_RMB },
{ wxT( "Mouse Wheel" ), PSEUDO_WXK_WHEEL }, { wxT( "Mouse Wheel" ), PSEUDO_WXK_WHEEL },
{ wxT( "Double-click" ), PSEUDO_WXK_DBLCLICK },
// Do not change this line: end of list // Do not change this line: end of list
{ wxT( "" ), KEY_NON_FOUND } { wxT( "" ), KEY_NON_FOUND }

View File

@ -47,10 +47,11 @@ class EDA_BASE_FRAME;
/* /*
* Keep these out of the ASCII range, and out of the WXK range * Keep these out of the ASCII range, and out of the WXK range
*/ */
#define PSEUDO_WXK_LMB 400 #define PSEUDO_WXK_LMB 400
#define PSEUDO_WXK_MMB 401 #define PSEUDO_WXK_MMB 401
#define PSEUDO_WXK_RMB 402 #define PSEUDO_WXK_RMB 402
#define PSEUDO_WXK_WHEEL 403 #define PSEUDO_WXK_WHEEL 403
#define PSEUDO_WXK_DBLCLICK 404
/** /**
* Function KeyCodeFromKeyName * Function KeyCodeFromKeyName