diff --git a/common/tool/context_menu.cpp b/common/tool/context_menu.cpp index 281a083df0..1751bde93b 100644 --- a/common/tool/context_menu.cpp +++ b/common/tool/context_menu.cpp @@ -37,7 +37,7 @@ CONTEXT_MENU::CONTEXT_MENU() : NULL, &m_handler ); // 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 ); } @@ -51,7 +51,7 @@ CONTEXT_MENU::CONTEXT_MENU( const CONTEXT_MENU& aMenu ) : NULL, &m_handler ); // 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 ); // Copy all the menu entries