Try to fix an unwanted left mouse release button event, when closing a dialog on a click or double click,
and therefore when the mouse butoon is released in the parent window Minor other fixes.
This commit is contained in:
@@ -209,6 +209,17 @@ void EDA_DRAW_FRAME::OnMenuOpen( wxMenuEvent& event )
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
/* function IgnoreLeftButtonReleaseEvent
|
||||
* after calling this function, the next left mouse button release
|
||||
* event will be ignored.
|
||||
* It is is usefull when closing a dialog on a mouse click,
|
||||
* to ignore the next mouse click by the parent window, although the mouse
|
||||
* button (cliched on the dialog) is released in the parent frame
|
||||
*/
|
||||
void EDA_DRAW_FRAME::IgnoreLeftButtonReleaseEvent()
|
||||
{
|
||||
m_canvas->SetIgnoreLeftButtonReleaseEvent( true );
|
||||
}
|
||||
|
||||
void EDA_DRAW_FRAME::OnToggleGridState( wxCommandEvent& aEvent )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user