DefaultDialogWrapper: do not accept key events which do not dismiss

Otherwise you cannot type in any TextInput which the dialog might
contain.

Change-Id: I7b0264199072372e989f2f8404b6029d7306c3b0
Reviewed-by: Liang Qi <liang.qi@digia.com>