handle case where using space in menu navigation triggers previously focused button in dialog