Fixup some more cursor issues.
This commit is contained in:
parent
b09a4b341c
commit
6f0c6f946c
|
@ -249,10 +249,8 @@ bool SCH_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
|
||||||
snapToGrid = true;
|
snapToGrid = true;
|
||||||
|
|
||||||
wxPoint pos = aPosition;
|
wxPoint pos = aPosition;
|
||||||
wxPoint oldpos = GetCrossHairPosition();
|
|
||||||
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
|
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
|
||||||
|
|
||||||
// Update cursor position.
|
|
||||||
if( GetToolId() == ID_NO_TOOL_SELECTED )
|
if( GetToolId() == ID_NO_TOOL_SELECTED )
|
||||||
m_canvas->CrossHairOff( aDC );
|
m_canvas->CrossHairOff( aDC );
|
||||||
else
|
else
|
||||||
|
|
|
@ -66,17 +66,15 @@ bool LIB_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
|
||||||
snapToGrid = true;
|
snapToGrid = true;
|
||||||
|
|
||||||
wxPoint pos = aPosition;
|
wxPoint pos = aPosition;
|
||||||
wxPoint oldpos = GetCrossHairPosition();
|
|
||||||
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
|
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
|
||||||
|
|
||||||
// Update the cursor position.
|
|
||||||
SetCrossHairPosition( pos, snapToGrid );
|
SetCrossHairPosition( pos, snapToGrid );
|
||||||
RefreshCrossHair( oldpos, aPosition, aDC );
|
|
||||||
|
if( m_canvas->IsMouseCaptured() )
|
||||||
|
m_canvas->CallMouseCapture( aDC, aPosition, true );
|
||||||
|
|
||||||
if( aHotKey && OnHotKey( aDC, aHotKey, aPosition, NULL ) )
|
if( aHotKey && OnHotKey( aDC, aHotKey, aPosition, NULL ) )
|
||||||
{
|
|
||||||
keyHandled = true;
|
keyHandled = true;
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure current-part highlighting doesn't get lost in seleciton highlighting
|
// Make sure current-part highlighting doesn't get lost in seleciton highlighting
|
||||||
ClearSearchTreeSelection();
|
ClearSearchTreeSelection();
|
||||||
|
|
Loading…
Reference in New Issue