Eeschema: Fix incorrect behavior of cursors when moving cursors by arrow keys.
Fixes: lp:1810684 https://bugs.launchpad.net/kicad/+bug/1810684
This commit is contained in:
parent
2d6f8a97b0
commit
3f9230fa51
|
@ -47,6 +47,7 @@
|
|||
#include <sch_sheet_path.h>
|
||||
#include <sch_marker.h>
|
||||
#include <sch_component.h>
|
||||
#include <sch_view.h>
|
||||
|
||||
|
||||
SCH_ITEM* SCH_EDIT_FRAME::LocateAndShowItem( const wxPoint& aPosition, const KICAD_T aFilterList[],
|
||||
|
@ -279,6 +280,14 @@ bool SCH_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
|
|||
m_canvas->CallMouseCapture( aDC, aPosition, true );
|
||||
|
||||
if( aHotKey )
|
||||
{
|
||||
if( m_movingCursorWithKeyboard ) // The hotkey was a move crossahir cursor command
|
||||
{
|
||||
// The crossair was moved. move the mouse cursor to the new crosshair position:
|
||||
GetGalCanvas()->GetViewControls()->WarpCursor( GetCrossHairPosition(), true );
|
||||
m_movingCursorWithKeyboard = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
SCH_SCREEN* screen = GetScreen();
|
||||
bool hk_handled;
|
||||
|
@ -291,6 +300,7 @@ bool SCH_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
|
|||
if( hk_handled )
|
||||
keyHandled = true;
|
||||
}
|
||||
}
|
||||
|
||||
UpdateStatusBar(); /* Display cursor coordinates info */
|
||||
|
||||
|
|
Loading…
Reference in New Issue