Fix the focus bug when showing the actions dialog