Work on focus handling in log and console windows