fixes #8598 No longer prevent default on keydown if autoDismiss is false