leointeg icon indicating copy to clipboard operation
leointeg copied to clipboard

Fix setting focus in field when 'ctrl+f' when find panel is collapsed

Open boltex opened this issue 4 years ago • 1 comments

Only if the find panel is not opened !

When it's collapsed the focus cannot reliably be put into it when unfolding it. So while unfolding just gather the user input with a regular inputBox

...and fill the find-panel search input box with it for next search with 'Enter' or 'F3'.

on the other hand, If already expanded, just do the usual.

boltex avatar Aug 10 '21 02:08 boltex

Instead, set a flag up to mean that it needs focus, and let the panel detect when unfolding/appearing, to then check if that flag is set (if so, set focus in field and clear the flag)

boltex avatar Aug 15 '21 23:08 boltex