If we will only need this class for dialogs that are modal, we could simplify the constructors we present by removing `boolean modal` (and change the name to `ShortcutContextAwareModalDialog`).
There could also be an opportunity to remove some of the constructors that we are not using for any of our dialogs, but that depends whether we want to keep it close to `DialogBox`.