OSX does not trigger keydown on paste, also listen to paste event to check for changes, fixes #2170
This commit is contained in:
parent
fbffadd4e5
commit
600cc9c3e9
1 changed files with 7 additions and 1 deletions
|
@ -294,6 +294,12 @@ Ox.Input = function(options, self) {
|
|||
})
|
||||
.appendTo(that);
|
||||
|
||||
if (self.bindKeyboard) {
|
||||
self.$input.on({
|
||||
paste: keydown
|
||||
});
|
||||
}
|
||||
|
||||
if (self.options.type == 'textarea') {
|
||||
Ox.Log('Form', 'TEXTAREA', self.options.width, self.options.height, '...', that.css('width'), that.css('height'), '...', self.$input.css('width'), self.$input.css('height'), '...', self.$input.css('border'))
|
||||
}
|
||||
|
@ -826,7 +832,7 @@ Ox.Input = function(options, self) {
|
|||
change: {value: self.options.value}
|
||||
});
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
}
|
||||
if (
|
||||
(event.keyCode == 38 || event.keyCode == 40) // up/down
|
||||
|
|
Loading…
Reference in a new issue