Just associate the dialog toplevels with the application instead. This makes key activation working again.