[FIX] web: list: multi edit boolean with ENTER

This rev. solves the similar issue as 801c603218, but with boolean
fields.

Scenario: select several records, select a boolean cell, press
enter to change the boolean value.

Task 2068280
This commit is contained in:
Aaron Bohy
2019-09-18 08:24:13 +00:00
committed by Julien Mougenot
parent 3b4cc84c1c
commit bb85f963b5
@@ -884,6 +884,8 @@ var FieldBoolean = AbstractField.extend({
_onKeydown: function (ev) {
switch (ev.which) {
case $.ui.keyCode.ENTER:
// prevent subsequent 'click' event (see _onKeydown of AbstractField)
ev.preventDefault();
this.$input.prop('checked', !this.value);
this._setValue(!this.value);
return;