1
0
Fork 0
forked from 0x2620/oxjs

update video editor (editables)

This commit is contained in:
rlx 2012-01-16 16:52:34 +05:30
commit 408ebf54cb
7 changed files with 55 additions and 51 deletions

View file

@ -32,7 +32,11 @@ Ox.ArrayEditable = function(options, self) {
doubleclick: doubleclick,
key_delete: deleteItem,
key_enter: function() {
that.editItem();
// make sure the newline does
// not end up in the textarea
setTimeout(function() {
that.editItem();
}, 0);
},
key_escape: selectNone,
key_down: self.options.type == 'input' ? selectLast : selectNext,