Fix cursor control with arrow keys

Fixes: lp:1749328
* https://bugs.launchpad.net/kicad/+bug/1749328
This commit is contained in:
Maciej Suminski 2018-02-14 09:22:56 +01:00
parent 5c8accef8e
commit 21a2c8d562
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}