Return cursor to arrow when leaving search ctrl.

Fixes https://gitlab.com/kicad/code/kicad/issues/12764
This commit is contained in:
Jeff Young 2022-10-27 16:26:33 +01:00
parent c0191e589e
commit 58ac62d493
1 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,11 @@ LIB_TREE::LIB_TREE( wxWindow* aParent, const wxString& aRecentSearchesKey, LIB_T
#endif #endif
m_query_ctrl->Bind( wxEVT_CHAR_HOOK, &LIB_TREE::onQueryCharHook, this ); m_query_ctrl->Bind( wxEVT_CHAR_HOOK, &LIB_TREE::onQueryCharHook, this );
m_query_ctrl->Bind( wxEVT_MOTION, &LIB_TREE::onQueryMouseMoved, this ); m_query_ctrl->Bind( wxEVT_MOTION, &LIB_TREE::onQueryMouseMoved, this );
m_query_ctrl->Bind( wxEVT_LEAVE_WINDOW,
[this] ( wxMouseEvent& aEvt )
{
SetCursor( wxCURSOR_ARROW );
} );
m_query_ctrl->Bind( wxEVT_MENU, m_query_ctrl->Bind( wxEVT_MENU,
[this]( wxCommandEvent& aEvent ) [this]( wxCommandEvent& aEvent )