forked from 0x2620/oxjs
fix issues with type textarea editables
This commit is contained in:
parent
8384fcc913
commit
0423800b05
4 changed files with 200 additions and 141 deletions
|
|
@ -114,13 +114,12 @@ Ox.Input = function(options, self) {
|
|||
height: self.options.height + 'px'
|
||||
} : {})
|
||||
)
|
||||
.bindEvent(Ox.extend(self.options.type == 'textarea' ? {
|
||||
key_shift_enter: submit
|
||||
} : {
|
||||
.bindEvent(Ox.extend(self.options.type == 'input' ? {
|
||||
key_enter: submit
|
||||
}, {
|
||||
} : {}, {
|
||||
key_control_v: paste,
|
||||
key_escape: cancel
|
||||
key_escape: cancel,
|
||||
key_shift_enter: submit
|
||||
}));
|
||||
|
||||
if (
|
||||
|
|
@ -1942,5 +1941,3 @@ Ox.Range_ = function(options, self) {
|
|||
return that;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue