1
0
Fork 0
forked from 0x2620/oxjs

add option to find selected annotation in _this_ video; make sure focus returns after hiding menus

This commit is contained in:
rlx 2012-02-16 12:32:52 +00:00
commit 73bd672b15
3 changed files with 50 additions and 18 deletions

View file

@ -484,6 +484,9 @@ Ox.VideoEditor = function(options, self) {
} else if (id == 'size') {
toggleSize();
}
},
hide: function() {
that.gainFocus();
}
})
.appendTo(self.$menubar);
@ -622,8 +625,13 @@ Ox.VideoEditor = function(options, self) {
setTimelineState();
},
find: function(data) {
that.triggerEvent('findannotation', data);
self.$findInput.options({value: data.value});
submitFindInput(data.value, true);
},
findannotations: function(data) {
that.triggerEvent('findannotations', data);
},
focus: that.gainFocus,
info: function(data) {
that.triggerEvent('info', data);
},