`Esc` does not work for my dialog in non-modal mode, event going to underlying window. Only adding 

```
setWindowModality(Qt::WindowModal);

```

to the dialog on creation makes the `Esc` key work and calls the `reject()` slot. Is it normal or possible to `Esc` in/from non-modal dialog?