Add a few more gestures to the hotkeys list.
Fixes: lp:1778437 * https://bugs.launchpad.net/kicad/+bug/1778437
This commit is contained in:
parent
36f70704eb
commit
21ac28a1ec
|
@ -39,10 +39,15 @@ public:
|
|||
};
|
||||
|
||||
static GESTURE_PSEUDO_ACTION g_gesturePseudoActions[] = {
|
||||
GESTURE_PSEUDO_ACTION( _( "Highlight Net" ), 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 Up/Down" ), MD_SHIFT + PSEUDO_WXK_WHEEL ),
|
||||
GESTURE_PSEUDO_ACTION( _( "Highlight Net" ), 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 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 ),
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -96,12 +96,13 @@ static struct hotkey_name_descr hotkeyNameList[] =
|
|||
|
||||
{ wxT( "Space" ), WXK_SPACE },
|
||||
|
||||
{ wxT( "<unassigned>" ), 0 },
|
||||
{ wxT( "" ), 0 },
|
||||
|
||||
{ wxT( "Left Button" ), PSEUDO_WXK_LMB },
|
||||
{ wxT( "Middle Button" ), PSEUDO_WXK_MMB },
|
||||
{ wxT( "Right Button" ), PSEUDO_WXK_RMB },
|
||||
{ wxT( "Mouse Wheel" ), PSEUDO_WXK_WHEEL },
|
||||
{ wxT( "Left Button" ), PSEUDO_WXK_LMB },
|
||||
{ wxT( "Middle Button" ), PSEUDO_WXK_MMB },
|
||||
{ wxT( "Right Button" ), PSEUDO_WXK_RMB },
|
||||
{ wxT( "Mouse Wheel" ), PSEUDO_WXK_WHEEL },
|
||||
{ wxT( "Double-click" ), PSEUDO_WXK_DBLCLICK },
|
||||
|
||||
// Do not change this line: end of list
|
||||
{ wxT( "" ), KEY_NON_FOUND }
|
||||
|
|
|
@ -47,10 +47,11 @@ class EDA_BASE_FRAME;
|
|||
/*
|
||||
* Keep these out of the ASCII range, and out of the WXK range
|
||||
*/
|
||||
#define PSEUDO_WXK_LMB 400
|
||||
#define PSEUDO_WXK_MMB 401
|
||||
#define PSEUDO_WXK_RMB 402
|
||||
#define PSEUDO_WXK_WHEEL 403
|
||||
#define PSEUDO_WXK_LMB 400
|
||||
#define PSEUDO_WXK_MMB 401
|
||||
#define PSEUDO_WXK_RMB 402
|
||||
#define PSEUDO_WXK_WHEEL 403
|
||||
#define PSEUDO_WXK_DBLCLICK 404
|
||||
|
||||
/**
|
||||
* Function KeyCodeFromKeyName
|
||||
|
|
Loading…
Reference in New Issue