Handle disappearing focus on widget

review892002