Petr,
In the end I had to skip this part of my transaction from monitoring because of occasional false positives resulting in the WPM error message "Element 'button' was not found" after modifying the step to do as you said above....
2. Enable X/Y mode
3. Click on input and write text while X/Y still enabled
4. Disable X/Y mode
5. Click on search button or whatever invokes search result
Tim