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(); that.scrollToSelection();
}, },
openpreview: function() { openpreview: function() {
var itemView = pandora.user.ui.itemView; if (pandora.isVideoView()) {
if (['player', 'editor', 'timeline'].indexOf(itemView) > -1) {
pandora.$ui[itemView].gainFocus().triggerEvent('key_space'); pandora.$ui[itemView].gainFocus().triggerEvent('key_space');
} }
}, },