forked from 0x2620/pandora
use pandora.isVideoView
This commit is contained in:
parent
22c0813a9b
commit
b16ee88a68
1 changed files with 1 additions and 2 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue