Fixed premature highlighting of options in CONTEXT_MENU.
This commit is contained in:
parent
12b8714aff
commit
e6c20adc5a
|
@ -37,7 +37,7 @@ CONTEXT_MENU::CONTEXT_MENU() :
|
||||||
NULL, &m_handler );
|
NULL, &m_handler );
|
||||||
|
|
||||||
// Workaround for the case when mouse cursor never reaches menu (it hangs up tools using menu)
|
// Workaround for the case when mouse cursor never reaches menu (it hangs up tools using menu)
|
||||||
wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, 0, &m_menu );
|
wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, -1, &m_menu );
|
||||||
m_menu.AddPendingEvent( menuEvent );
|
m_menu.AddPendingEvent( menuEvent );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ CONTEXT_MENU::CONTEXT_MENU( const CONTEXT_MENU& aMenu ) :
|
||||||
NULL, &m_handler );
|
NULL, &m_handler );
|
||||||
|
|
||||||
// Workaround for the case when mouse cursor never reaches menu (it hangs up tools using menu)
|
// Workaround for the case when mouse cursor never reaches menu (it hangs up tools using menu)
|
||||||
wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, 0, &m_menu );
|
wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, -1, &m_menu );
|
||||||
m_menu.AddPendingEvent( menuEvent );
|
m_menu.AddPendingEvent( menuEvent );
|
||||||
|
|
||||||
// Copy all the menu entries
|
// Copy all the menu entries
|
||||||
|
|
Loading…
Reference in New Issue