Have Modal binding set input focus

When the Modal shown event is thrown, find the first element with the "autofocus" HTML5 attribute and set the focus to that element.