use pandora.isVideoView

This commit is contained in:
rolux 2013-08-02 15:08:16 +00:00
parent 22c0813a9b
commit b16ee88a68

View file

@ -137,8 +137,7 @@ pandora.ui.browser = function() {
that.scrollToSelection();
},
openpreview: function() {
var itemView = pandora.user.ui.itemView;
if (['player', 'editor', 'timeline'].indexOf(itemView) > -1) {
if (pandora.isVideoView()) {
pandora.$ui[itemView].gainFocus().triggerEvent('key_space');
}
},