1
0
Fork 0
forked from 0x2620/oxjs

beginning to fix #318

This commit is contained in:
rlx 2012-02-15 22:06:00 +00:00
commit c040e48601
3 changed files with 71 additions and 6 deletions

View file

@ -128,7 +128,7 @@ Ox.VideoEditor = function(options, self) {
self.options.videoSize == 'large' && toggleSize();
},
key_n: function() {
self.annotations.length && selectAnnotation(getNextAnnotation('annotation', 1), true);
self.annotations.length && selectAnnotation(getNextAnnotation('annotation', 1));
},
key_o: function() {
setPoint('out', self.options.position);
@ -620,7 +620,6 @@ Ox.VideoEditor = function(options, self) {
info: function(data) {
that.triggerEvent('info', data);
},
paused: togglePaused,
remove: removeAnnotation,
resize: resizeAnnotations,
resizeend: resizeendAnnotations,
@ -648,6 +647,30 @@ Ox.VideoEditor = function(options, self) {
togglemap: function(data) {
self.options.showAnnotationsMap = !data.collapsed;
that.triggerEvent('togglemap', data);
},
key_b: function() {
that.triggerEvent('key_b');
},
key_equal: function() {
that.triggerEvent('key_equal');
},
key_f: function() {
that.triggerEvent('key_f');
},
key_g: function() {
that.triggerEvent('key_g');
},
key_minus: function() {
that.triggerEvent('key_minus');
},
key_n: function() {
that.triggerEvent('key_n');
},
key_shift_g: function() {
that.triggerEvent('key_shift_g');
},
key_space: function() {
that.triggerEvent('key_space');
}
});