Use Ctrl+F1 to display hotkey list also in Gerbview and Kicad manager
This commit is contained in:
parent
4a254ee7f3
commit
e9ef555c6a
|
@ -65,7 +65,7 @@ static EDA_HOTKEY HkZoomOut( _HKI( "Zoom Out" ), HK_ZOOM_OUT, WXK_F2 );
|
||||||
static EDA_HOTKEY HkZoomIn( _HKI( "Zoom In" ), HK_ZOOM_IN, WXK_F1 );
|
static EDA_HOTKEY HkZoomIn( _HKI( "Zoom In" ), HK_ZOOM_IN, WXK_F1 );
|
||||||
static EDA_HOTKEY HkZoomSelection( _HKI( "Zoom to Selection" ),
|
static EDA_HOTKEY HkZoomSelection( _HKI( "Zoom to Selection" ),
|
||||||
HK_ZOOM_SELECTION, GR_KB_CTRL + WXK_F5 );
|
HK_ZOOM_SELECTION, GR_KB_CTRL + WXK_F5 );
|
||||||
static EDA_HOTKEY HkHelp( _HKI( "Help (this window)" ), HK_HELP, '?' );
|
static EDA_HOTKEY HkHelp( _HKI( "Help (this window)" ), HK_HELP, GR_KB_CTRL + WXK_F1 );
|
||||||
static EDA_HOTKEY HkSwitchUnits( _HKI( "Switch Units" ), HK_SWITCH_UNITS, 'U' );
|
static EDA_HOTKEY HkSwitchUnits( _HKI( "Switch Units" ), HK_SWITCH_UNITS, 'U' );
|
||||||
static EDA_HOTKEY HkResetLocalCoord( _HKI( "Reset Local Coordinates" ),
|
static EDA_HOTKEY HkResetLocalCoord( _HKI( "Reset Local Coordinates" ),
|
||||||
HK_RESET_LOCAL_COORD, ' ' );
|
HK_RESET_LOCAL_COORD, ' ' );
|
||||||
|
@ -111,8 +111,8 @@ static EDA_HOTKEY HkMeasureTool( _HKI( "Measure Distance (Modern Toolset only)"
|
||||||
// List of common hotkey descriptors
|
// List of common hotkey descriptors
|
||||||
EDA_HOTKEY* gerbviewHotkeyList[] = {
|
EDA_HOTKEY* gerbviewHotkeyList[] = {
|
||||||
&HkHelp,
|
&HkHelp,
|
||||||
&HkZoomIn, &HkZoomOut, &HkZoomRedraw, &HkZoomCenter,
|
&HkZoomIn, &HkZoomOut, &HkZoomRedraw, &HkZoomCenter,
|
||||||
&HkZoomAuto, &HkZoomSelection, &HkSwitchUnits, &HkResetLocalCoord,
|
&HkZoomAuto, &HkZoomSelection, &HkSwitchUnits, &HkResetLocalCoord,
|
||||||
&HkLinesDisplayMode, &HkFlashedDisplayMode, &HkPolygonDisplayMode,
|
&HkLinesDisplayMode, &HkFlashedDisplayMode, &HkPolygonDisplayMode,
|
||||||
&HkDCodesDisplayMode, &HkNegativeObjDisplayMode,
|
&HkDCodesDisplayMode, &HkNegativeObjDisplayMode,
|
||||||
&HkSwitch2NextCopperLayer,
|
&HkSwitch2NextCopperLayer,
|
||||||
|
|
|
@ -365,8 +365,9 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
_( "Open the GerbView Manual" ),
|
_( "Open the GerbView Manual" ),
|
||||||
KiBitmap( online_help_xpm ) );
|
KiBitmap( online_help_xpm ) );
|
||||||
|
|
||||||
|
text = AddHotkeyName( _( "&List Hotkeys..." ), GerbviewHokeysDescr, HK_HELP );
|
||||||
AddMenuItem( helpMenu, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
AddMenuItem( helpMenu, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
||||||
_( "&List Hotkeys..." ),
|
text,
|
||||||
_( "Displays the current hotkeys list and corresponding commands" ),
|
_( "Displays the current hotkeys list and corresponding commands" ),
|
||||||
KiBitmap( hotkeys_xpm ) );
|
KiBitmap( hotkeys_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ static EDA_HOTKEY HkRunPleditor( _HKI( "Run PlEditor" ), HK_RUN_PLEDITOR, 'Y' +
|
||||||
static EDA_HOTKEY HkNewProject( _HKI( "New Project" ), HK_NEW, GR_KB_CTRL + 'N' );
|
static EDA_HOTKEY HkNewProject( _HKI( "New Project" ), HK_NEW, GR_KB_CTRL + 'N' );
|
||||||
static EDA_HOTKEY HkOpenProject( _HKI( "Open Project" ), HK_OPEN, GR_KB_CTRL + 'O' );
|
static EDA_HOTKEY HkOpenProject( _HKI( "Open Project" ), HK_OPEN, GR_KB_CTRL + 'O' );
|
||||||
static EDA_HOTKEY HkSaveProject( _HKI( "Save Project" ), HK_SAVE, GR_KB_CTRL + 'S' );
|
static EDA_HOTKEY HkSaveProject( _HKI( "Save Project" ), HK_SAVE, GR_KB_CTRL + 'S' );
|
||||||
static EDA_HOTKEY HkHelp( _HKI( "Help (this window)" ), HK_HELP, '?' );
|
static EDA_HOTKEY HkHelp( _HKI( "Help (this window)" ), HK_HELP, GR_KB_CTRL + WXK_F1 );
|
||||||
|
|
||||||
// List of hotkey descriptors
|
// List of hotkey descriptors
|
||||||
EDA_HOTKEY* common_Hotkey_List[] =
|
EDA_HOTKEY* common_Hotkey_List[] =
|
||||||
|
|
Loading…
Reference in New Issue