I'm gonna just keep in this hack for now. I've spent 5 hours trying to, but I just don't understand this program I've written.
It does seem to show the cursor properly above the search bar even if I zoom to larger or smaller text sizes.
ZPJSLO2XBNFIDZODKEANQGZ6ZUUCNGDOQRVECTUHVIG2QQ3VAQUQC