diff --git a/lib/client/view.js b/lib/client/view.js index e44add2b..50121df3 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -156,6 +156,9 @@ var CloudCmd, Util, DOM, CloudFunc, $; Config.beforeClose(); Events.rmKey(onKey); }, + afterShow: function() { + element.focus(); + }, helpers: { overlay : null, title : null @@ -200,7 +203,7 @@ var CloudCmd, Util, DOM, CloudFunc, $; } function isAudio(name) { - return /\.(mp3|ogg)$/.test(name); + return /\.(mp3|ogg|m4a)$/.test(name); } function isVideo(name) {