Thanks for that. I spent a bunch of time on keyboard visibility code a few weeks ago and wasn't happy with anything that I found.