Pl_editor: fix missing hotkeys
This commit is contained in:
parent
c977895412
commit
56e3e988ff
File diff suppressed because it is too large
Load Diff
|
@ -71,7 +71,7 @@ static EDA_HOTKEY HkZoomSelection( _HKI( "Zoom to Selection" ), HK_ZOOM_SELECTIO
|
|||
GR_KB_CTRL + WXK_F5 );
|
||||
static EDA_HOTKEY HkHelp( _HKI( "List Hotkeys" ), HK_HELP, GR_KB_CTRL + WXK_F1 );
|
||||
static EDA_HOTKEY HkMoveItem( _HKI( "Move Item" ), HK_MOVE, 'M' );
|
||||
static EDA_HOTKEY HkDeleteItem( _HKI( "Delete Item" ), HK_DELETE_ITEM, WXK_DELETE );
|
||||
static EDA_HOTKEY HkDeleteItem( _HKI( "Delete Item" ), HK_DELETE, WXK_DELETE );
|
||||
|
||||
// Common: hotkeys_basic.h
|
||||
static EDA_HOTKEY HkUndo( _HKI( "Undo" ), HK_UNDO, GR_KB_CTRL + 'Z', (int) wxID_UNDO );
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2013 CERN
|
||||
* @author Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||
* Copyright (C) 2016-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -35,8 +35,9 @@
|
|||
// see also enum common_hotkey_id_command in hotkeys_basic.h
|
||||
// for shared hotkeys id
|
||||
enum hotkey_id_command {
|
||||
HK_MOVE = HK_COMMON_END,
|
||||
HK_DELETE_ITEM
|
||||
HK_PL_EDITOR_START = HK_COMMON_END,
|
||||
HK_MOVE,
|
||||
HK_PL_EDITOR_END
|
||||
};
|
||||
|
||||
// List of hotkey descriptors for PlEditor.
|
||||
|
|
|
@ -91,6 +91,7 @@ bool PL_EDIT_TOOL::Init()
|
|||
selToolMenu.AddItem( PL_ACTIONS::cut, SELECTION_CONDITIONS::NotEmpty, 200 );
|
||||
selToolMenu.AddItem( PL_ACTIONS::copy, SELECTION_CONDITIONS::NotEmpty, 200 );
|
||||
selToolMenu.AddItem( PL_ACTIONS::paste, SELECTION_CONDITIONS::ShowAlways, 200 );
|
||||
selToolMenu.AddItem( PL_ACTIONS::move, SELECTION_CONDITIONS::NotEmpty, 200 );
|
||||
selToolMenu.AddItem( PL_ACTIONS::doDelete, SELECTION_CONDITIONS::NotEmpty, 200 );
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue