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:
parent
2bd8c8d13f
commit
73bd672b15
3 changed files with 50 additions and 18 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue