← Back to team overview

kicad-developers team mailing list archive

Mouse moving automatically after right click


Hi all,

I feel really surprising the way right click is handled in kicad.
If you right click to make menu the menu appears, and then you click
somewhere else to discard the menu, the mouse automatically go back to
where you first click.

This is done in common/drawpanel.cpp in OnRightClick() function.

For me, the mouse should not be moved in that case. Another bug
appears if you comment MouseToCursorSchema() in the function,
the cross on the grid in not immediately updated, but I think it is less odd.

It is a bug or was it done on purpose?