From 21a2c8d5626faf8b04f9fc95280dc41def11313f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 14 Feb 2018 09:22:56 +0100 Subject: [PATCH] Fix cursor control with arrow keys Fixes: lp:1749328 * https://bugs.launchpad.net/kicad/+bug/1749328 --- common/view/wx_view_controls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index 27ee89bc97..0ad8d2bf9c 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -306,7 +306,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent ) { case AUTO_PANNING: { - if ( !m_settings.m_autoPanEnabled ) + if( !m_settings.m_autoPanEnabled ) { m_state = IDLE; return; @@ -597,8 +597,8 @@ void WX_VIEW_CONTROLS::refreshMouse() moveEvent.m_altDown = wxGetKeyState( WXK_ALT ); #endif + m_cursorPos = m_view->ToWorld( VECTOR2D( msp.x, msp.y ) ); wxPostEvent( m_parentPanel, moveEvent ); - onMotion( moveEvent ); }