User forums > Help

Incremental Search text box selects itself

<< < (2/2)

Miguel Gimenez:
If you can compile C::B you can try changing this code (in IncrementalSearch.cpp)


--- Code: ---#ifdef __WXMAC__
    // on macOS only set focus if we really lost it, to avoid native select all,
    // or it will reset the text selection
    if (!m_pTextCtrl->HasFocus())
        m_pTextCtrl->SetFocus();
#else
    m_pTextCtrl->SetFocus();
#endif

--- End code ---

to just


--- Code: ---    // only set focus if we really lost it, to avoid native select all
    // or it will reset the text selection
    if (!m_pTextCtrl->HasFocus())
        m_pTextCtrl->SetFocus();

--- End code ---

Miguel Gimenez:
Fixed on Ubuntu, should work also on Debian (commit 13764).

Navigation

[0] Message Index

[*] Previous page

Go to full version