bind h key
This commit is contained in:
parent
8d7d1fdf36
commit
215013e7c8
1 changed files with 16 additions and 11 deletions
|
@ -117,6 +117,7 @@ Ox.VideoEditor = function(options, self) {
|
||||||
key_g: function() {
|
key_g: function() {
|
||||||
self.results.length && selectAnnotation(getNextAnnotation('result', 1));
|
self.results.length && selectAnnotation(getNextAnnotation('result', 1));
|
||||||
},
|
},
|
||||||
|
key_h: showKeyboardShortcuts,
|
||||||
key_i: function() {
|
key_i: function() {
|
||||||
setPoint('in', self.options.position);
|
setPoint('in', self.options.position);
|
||||||
},
|
},
|
||||||
|
@ -451,17 +452,7 @@ Ox.VideoEditor = function(options, self) {
|
||||||
click: function(data) {
|
click: function(data) {
|
||||||
var id = data.id;
|
var id = data.id;
|
||||||
if (id == 'keyboard') {
|
if (id == 'keyboard') {
|
||||||
var dialog = Ox.Dialog({
|
showKeyboardShortcuts();
|
||||||
buttons: [
|
|
||||||
Ox.Button({id: 'close', title: 'Close'})
|
|
||||||
.bindEvent({click: function() { dialog.close(); }})
|
|
||||||
],
|
|
||||||
content: self.$keyboardShortcuts,
|
|
||||||
height: 384,
|
|
||||||
keys: {enter: 'close', escape: 'close'},
|
|
||||||
title: 'Keyboard Shortcuts',
|
|
||||||
width: 256
|
|
||||||
}).open();
|
|
||||||
} else if (id == 'downloadVideo') {
|
} else if (id == 'downloadVideo') {
|
||||||
that.triggerEvent('downloadvideo');
|
that.triggerEvent('downloadvideo');
|
||||||
} else if (id == 'downloadSelection') {
|
} else if (id == 'downloadSelection') {
|
||||||
|
@ -1101,6 +1092,20 @@ Ox.VideoEditor = function(options, self) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showKeyboardShortcuts() {
|
||||||
|
var dialog = Ox.Dialog({
|
||||||
|
buttons: [
|
||||||
|
Ox.Button({id: 'close', title: 'Close'})
|
||||||
|
.bindEvent({click: function() { dialog.close(); }})
|
||||||
|
],
|
||||||
|
content: self.$keyboardShortcuts,
|
||||||
|
height: 384,
|
||||||
|
keys: {enter: 'close', escape: 'close'},
|
||||||
|
title: 'Keyboard Shortcuts',
|
||||||
|
width: 256
|
||||||
|
}).open();
|
||||||
|
}
|
||||||
|
|
||||||
function setTimelineState() {
|
function setTimelineState() {
|
||||||
self.$timeline[1].options({
|
self.$timeline[1].options({
|
||||||
state: self.editing ? 'editing'
|
state: self.editing ? 'editing'
|
||||||
|
|
Loading…
Reference in a new issue