Fix Symbol editor: some hotkeys are not working (Delete item and Drag item)
Fixes: lp:1741145 https://bugs.launchpad.net/kicad/+bug/1741145
This commit is contained in:
parent
b98cc0b937
commit
cb60da3bc5
|
@ -796,7 +796,7 @@ bool LIB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
|
||||||
if ( !itemInEdit )
|
if ( !itemInEdit )
|
||||||
SetDrawItem( LocateItemUsingCursor( aPosition ) );
|
SetDrawItem( LocateItemUsingCursor( aPosition ) );
|
||||||
|
|
||||||
if( IsEditingDrawItem() )
|
if( GetDrawItem() )
|
||||||
{
|
{
|
||||||
cmd.SetId( ID_POPUP_LIBEDIT_DELETE_ITEM );
|
cmd.SetId( ID_POPUP_LIBEDIT_DELETE_ITEM );
|
||||||
Process_Special_Functions( cmd );
|
Process_Special_Functions( cmd );
|
||||||
|
@ -821,7 +821,7 @@ bool LIB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
|
||||||
{
|
{
|
||||||
SetDrawItem( LocateItemUsingCursor( aPosition ) );
|
SetDrawItem( LocateItemUsingCursor( aPosition ) );
|
||||||
|
|
||||||
if( IsEditingDrawItem() )
|
if( GetDrawItem() )
|
||||||
{
|
{
|
||||||
cmd.SetId( ID_POPUP_LIBEDIT_MODIFY_ITEM );
|
cmd.SetId( ID_POPUP_LIBEDIT_MODIFY_ITEM );
|
||||||
Process_Special_Functions( cmd );
|
Process_Special_Functions( cmd );
|
||||||
|
|
Loading…
Reference in New Issue