Skip to content

Commit

Permalink
fix(view) audio, video has no focus, when open by mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Apr 12, 2015
1 parent 78092dc commit c60c87f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/client/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Events.rmKey(onKey);
},
afterShow: function() {
element.focus();
element
.querySelector('audio, video')
.focus();
},
helpers: {
overlay : null,
Expand Down

0 comments on commit c60c87f

Please sign in to comment.