https://bugs.winehq.org/show_bug.cgi?id=32439
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- (In reply to gat from comment #3)
Also, hitting escape after testing the highlighting and re-opening the Replace dialog with the keyboard creates focus and hightlighting to "foo". If you had manually selected "bar" (Shift-Home), then hit escape it will maintain the highlighting on both "foo" and "bar".
This one looks like a separate issue. Please open a new report for it.