[MERGE] fixes for non-direct IME
bzr revid: xmo@openerp.com-20131218152626-kexq1wudvjwnh962
This commit is contained in:
commit
1b76c66930
|
@ -3978,7 +3978,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
|
|||
}
|
||||
this.cancel_edition();
|
||||
},
|
||||
keyup_ENTER: function () {
|
||||
keypress_ENTER: function () {
|
||||
// blurring caused by hitting the [Return] key, should skip the
|
||||
// autosave-on-blur and let the handler for [Return] do its thing (save
|
||||
// the current row *anyway*, then create a new one/edit the next one)
|
||||
|
|
|
@ -459,7 +459,7 @@ openerp.web.list_editable = function (instance) {
|
|||
});
|
||||
});
|
||||
|
||||
this.editor.$el.on('keyup keydown', function (e) {
|
||||
this.editor.$el.on('keyup keypress keydown', function (e) {
|
||||
if (!self.editor.is_editing()) { return true; }
|
||||
var key = _($.ui.keyCode).chain()
|
||||
.map(function (v, k) { return {name: k, code: v}; })
|
||||
|
@ -494,7 +494,7 @@ openerp.web.list_editable = function (instance) {
|
|||
return self.start_edition(record, options);
|
||||
});
|
||||
},
|
||||
keyup_ENTER: function () {
|
||||
keypress_ENTER: function () {
|
||||
return this._next();
|
||||
},
|
||||
keydown_ESCAPE: function (e) {
|
||||
|
|
Loading…
Reference in New Issue