This is happening to me too and it's incredibly annoying. Every time I open Chrome while Dreamweaver is up, I have to click the Chrome window before I can start typing. Using latest version of Dreamweaver. I've heard it's got a lot of new problems. Realtime preview is completely broken now, updates once in a while now depending on what editing you do, where in the HTML file. Sometimes you even have to press F5. Spent hours trying everything, reading forums, but nothing works.
You posted in an old discussion. I moved this to a new one for you.
Which version of Dreamweaver do you have, please?
Which operating system and build #?
Also is your application maximized and covering your entire desktop?
Thank you for offering your assistance. The focus problem disappeared after a reboot. The issue with realtime preview still comes and goes but it's mostly not a problem. There seems to be a few ways to edit the HTML file that Dreamweaver doesn't pick up on and transmit to the browser. Hopefully Adobe will make the detection mechanism more thorough in the future.